parameters: (self, model_or_iterable)
docstring: Unregisters the given model(s).
  
          If a model isn't already registered, this will raise NotRegistered.
docstring_summary: Unregisters the given model(s).
docstring_tokens: Unregisters the given model ( s ) .
function: def unregister(self, model_or_iterable):
          """
          Unregisters the given model(s).
  
          If a model isn't already registered, this will raise NotRegistered.
          """
          from xadmin.views.base import BaseAdminView
          if isinstance(model_or_iterable, (ModelBase, BaseAdminView)):
              model_or_iterable = [model_or_iterable]
          for model in model_or_iterable:
              if isinstance(model, ModelBase):
                  if model not in self._registry:
                      raise NotRegistered(
                          'The model %s is not registered' % model.__name__)
                  del self._registry[model]
              else:
                  if model not in self._registry_avs:
                      raise NotRegistered('The admin_view_class %s is not registered' % model.__name__)
                  del self._registry_avs[model]
function_tokens: def unregister ( self , model_or_iterable ) : from xadmin . views . base import BaseAdminView if isinstance ( model_or_iterable , ( ModelBase , BaseAdminView ) ) : model_or_iterable = [ model_or_iterable ] for model in model_or_iterable : if isinstance ( model , ModelBase ) : if model not in self . _registry : raise NotRegistered ( 'The model %s is not registered' % model . __name__ ) del self . _registry [ model ] else : if model not in self . _registry_avs : raise NotRegistered ( 'The admin_view_class %s is not registered' % model . __name__ ) del self . _registry_avs [ model ]