mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-16 21:12:13 +00:00
HOTFIX: Supplier admin broken
This commit is contained in:
@@ -113,7 +113,7 @@ class AssociateAdmin(VersionAdmin):
|
||||
actions = ['merge']
|
||||
|
||||
def get_queryset(self, request):
|
||||
return super(AssociateAdmin, self).get_queryset(request).annotate(event_count=Count('event'))
|
||||
return super().get_queryset(request).annotate(event_count=Count('event'))
|
||||
|
||||
def number_of_events(self, obj):
|
||||
return obj.latest_events.count()
|
||||
|
||||
Reference in New Issue
Block a user