def register_entity(self, entity_config):
if not issubclass(entity_config, EntityConfig):<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if entity_config.queryset is None:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>model = entity_config.queryset.model<EOL>self._entity_registry[model] = entity_config()<EOL>for watching_model, entity_model_getter in entity_config.watching:<EOL><INDENT>self._entity_watching[watching_model].append((model, entity_model_getter))<EOL><DEDENT>
Registers an entity config