def deregister(self, model):
    '\n        Deregisters the given model. Remove the model from the self.app as well\n\n        If the model is not already registered, this will raise\n        ImproperlyConfigured.\n        '
    try:
        del self.registry[model]
    except KeyError:
        raise ImproperlyConfigured(('%s was never registered in django-admin2' % model))
    app_label = utils.model_options(model).app_label
    del self.apps[app_label][model]
    if (self.apps[app_label] is {}):
        del self.apps[app_label]
Deregisters the given model. Remove the model from the self.app as well

If the model is not already registered, this will raise
ImproperlyConfigured.
def deregister(self, model):
    '\n        Deregisters the given model. Remove the model from the self.app as well\n\n        If the model is not already registered, this will raise\n        ImproperlyConfigured.\n        '
    try:
        del self.registry[model]
    except KeyError:
        raise ImproperlyConfigured(('%s was never registered in django-admin2' % model))
    app_label = utils.model_options(model).app_label
    del self.apps[app_label][model]
    if (self.apps[app_label] is {}):
        del self.apps[app_label]