def register_entity():
def _entity_config_wrapper(entity_config_class):<EOL><INDENT>entity_registry.register_entity(entity_config_class)<EOL>return entity_config_class<EOL><DEDENT>return _entity_config_wrapper<EOL>
Registers the EntityConfig class with
django entity:

@register_entity()
class AuthorConfig(EntityConfig):
    queryset = Author.objects.all()