def modelresource_factory(model, resource_class=ModelResource):
attrs = {'<STR_LIT>': model}<EOL>Meta = type(str('<STR_LIT:Meta>'), (object,), attrs)<EOL>class_name = model.__name__ + str('<STR_LIT>')<EOL>class_attrs = {<EOL>'<STR_LIT:Meta>': Meta,<EOL>}<EOL>metaclass = ModelDeclarativeMetaclass<EOL>return metaclass(class_name, (resource_class,), class_attrs)<EOL>
Factory for creating ``ModelResource`` class for given Django model.