Added rollover function.

Hidden some admin views
This commit is contained in:
John Mullins
2023-12-11 10:25:30 +11:00
parent 776042703e
commit d858bf84fd
5 changed files with 71 additions and 10 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ class Shuttle(models.Model):
def traveller_count(self):
count = 0
for traveller in Traveller.objects.filter(shuttle=self):
for traveller in Traveller.objects.filter(shuttle=self, is_archived=False):
if traveller.is_active():
count += 1
return count