Exemplo n.º 1
0
    def get_changed_revisions(self, instance, field):
        """
        FIXME: for now this returns the same as get_FIELD_revisions, later
        on it should return all revisions where _any_ rcsfield on the model
        changed.

        """
        return backend.get_revisions(
            self.rcskey_format % (instance._meta.app_label, instance.__class__.__name__, field.attname, instance.id)
        )
Exemplo n.º 2
0
 def get_FIELD_revisions(self, instance, field):
     return backend.get_revisions(
         self.rcskey_format % (instance._meta.app_label, instance.__class__.__name__, field.attname, instance.id)
     )
Exemplo n.º 3
0
 def get_FIELD_revisions(self, instance, field):
     return backend.get_revisions(self.get_key(instance))
Exemplo n.º 4
0
 def get_FIELD_revisions(self, instance, field):
     return backend.get_revisions(self.get_key(instance))