fix last_update
This commit is contained in:
parent
0e92161dd0
commit
a6a0bd53dd
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ class ChangeSet(models.Model):
|
||||||
@property
|
@property
|
||||||
def last_update(self):
|
def last_update(self):
|
||||||
if self.changed_objects is None:
|
if self.changed_objects is None:
|
||||||
return self.relevant_changed_objects().aggregate(Max('last_update'))['last_update__max']
|
return self.changed_objects_set.aggregate(Max('last_update'))['last_update__max']
|
||||||
|
|
||||||
return max(chain(*self.changed_objects.values()), key=attrgetter('last_update'))
|
return max(chain(*self.changed_objects.values()), key=attrgetter('last_update'))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue