Exemplo n.º 1
0
 def get_deleted(self, model_class, select_related=None):
     """
     Returns all the deleted versions for the given model class.
     
     This method was deprecated in django-reversion 1.5, and will be removed in django-reversion 1.7.
     
     New applications should use reversion.get_deleted(). The new version of this method
     returns results ordered with the most recent versions first. This legacy version of the method
     continues to return the results ordered with the oldest versions first.
     """
     from reversion.revisions import default_revision_manager
     return list(default_revision_manager.get_deleted(model_class).order_by("pk"))
Exemplo n.º 2
0
 def get_deleted(self, model_class, select_related=None):
     """
     Returns all the deleted versions for the given model class.
     
     This method was deprecated in django-reversion 1.5, and will be removed in django-reversion 1.7.
     
     New applications should use reversion.get_deleted(). The new version of this method
     returns results ordered with the most recent versions first. This legacy version of the method
     continues to return the results ordered with the oldest versions first.
     """
     from reversion.revisions import default_revision_manager
     return list(default_revision_manager.get_deleted(model_class).order_by("pk"))