Skip to content

Commit d52da90

Browse files
committed
Renamed 'latest' to 'current' in the LatestManager, to avoid a clash with Django's own 'latest' method on querysets.
1 parent 156b221 commit d52da90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

revisions/managers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class LatestManager(models.Manager):
2626
use_for_related_fields = True
2727

2828
@property
29-
def latest(self):
29+
def current(self):
3030
qs = LatestQuerySet(self.model, using=self._db)
3131

3232
# in case of concrete inheritance, we need the base table, not the leaf
@@ -79,7 +79,7 @@ def get_query_set(self):
7979
if stack.startswith('save') or stack == 'collect' or stack == '_collect_sub_objects':
8080
return super(LatestManager, self).get_query_set()
8181
else:
82-
return self.latest
82+
return self.current
8383

8484

8585
def trash_aware(cls):

0 commit comments

Comments
 (0)