diff options
Diffstat (limited to 'core/models.py')
-rw-r--r-- | core/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/models.py b/core/models.py index 4d69481..9414e58 100644 --- a/core/models.py +++ b/core/models.py @@ -157,7 +157,7 @@ class Person(TroggleModel): notability = Decimal(0) max_expo_val = 0 - max_expo_year = Expedition.objects.all().aggregate(Max('year')) + max_expo_year = Expedition.objects.all().aggregate(models.Max('year')) max_expo_val = int(max_expo_year['year__max']) + 1 for personexpedition in self.personexpedition_set.all(): @@ -232,7 +232,7 @@ class PersonExpedition(TroggleModel): return res["day_min"] def day_max(self): - res = self.persontrip_set.all().aggregate(day_max=Max("expeditionday__date")) + res = self.persontrip_set.all().aggregate(day_max=models.Max("expeditionday__date")) return res["day_max"] |