Commits

Anonymous committed 5afa36e

Fixed admin filter

  • Participants
  • Parent commits 3515116

Comments (0)

Files changed (1)

audittrail/admin.py

             (user.pk, user.get_full_name() or user.username)
             for user in User.objects.annotate(
                 last_audit=Max('audit_events__created')
-            ).order_by('-last_audit')[:20]
+            ).filter(last_audit__isnull=False).order_by('-last_audit')[:20]
         )
 
     def queryset(self, request, queryset):