We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 156b221 commit d52da90Copy full SHA for d52da90
revisions/managers.py
@@ -26,7 +26,7 @@ class LatestManager(models.Manager):
26
use_for_related_fields = True
27
28
@property
29
- def latest(self):
+ def current(self):
30
qs = LatestQuerySet(self.model, using=self._db)
31
32
# in case of concrete inheritance, we need the base table, not the leaf
@@ -79,7 +79,7 @@ def get_query_set(self):
79
if stack.startswith('save') or stack == 'collect' or stack == '_collect_sub_objects':
80
return super(LatestManager, self).get_query_set()
81
else:
82
- return self.latest
+ return self.current
83
84
85
def trash_aware(cls):
0 commit comments