src/reversion/revisions.py
def unregister(self, model):
        """Removes a model from version control."""
        if not self.is_registered(model):
            raise RegistrationError('{model} has not been registered with django-reversion'.format(
                model = model,
            ))
        del self._registered_models[self._registration_key_for_model(model)]
        all_signals = self._signals[model] + self._eager_signals[model]
        for signal in all_signals:
            signal.disconnect(self._signal_receiver, model)
        del self._signals[model]
        del self._eager_signals[model]

        delattr(model, 'reversion_versions')
        model.reversion_versions = GenericRelation(Version)
Removes a model from version control.
Removes a model from version control.
Removes a model from version control .
def unregister(self, model):
        if not self.is_registered(model):
            raise RegistrationError('{model} has not been registered with django-reversion'.format(
                model = model,
            ))
        del self._registered_models[self._registration_key_for_model(model)]
        all_signals = self._signals[model] + self._eager_signals[model]
        for signal in all_signals:
            signal.disconnect(self._signal_receiver, model)
        del self._signals[model]
        del self._eager_signals[model]
        delattr(model, 'reversion_versions')
        model.reversion_versions = GenericRelation(Version)
def unregister ( self , model ) : if not self . is_registered ( model ) : raise RegistrationError ( '{model} has not been registered with django-reversion' . format ( model = model , ) ) del self . _registered_models [ self . _registration_key_for_model ( model ) ] all_signals = self . _signals [ model ] + self . _eager_signals [ model ] for signal in all_signals : signal . disconnect ( self . _signal_receiver , model ) del self . _signals [ model ] del self . _eager_signals [ model ] delattr ( model , 'reversion_versions' ) model . reversion_versions = GenericRelation ( Version )
Removes a model from version control.
Removes a model from version control .
"""Removes a model from version control."""
self
model