def filterset_factory(model):
    meta = type(str('Meta'), (object,), {'model': model})
    filterset = type(str(('%sFilterSet' % model._meta.object_name)), (FilterSet,), {'Meta': meta})
    return filterset
def filterset_factory(model):
    meta = type(str('Meta'), (object,), {'model': model})
    filterset = type(str(('%sFilterSet' % model._meta.object_name)), (FilterSet,), {'Meta': meta})
    return filterset