Rough test cases

This commit is contained in:
zandercymatics 2023-12-18 14:54:24 -07:00
parent dc13fc6661
commit 1d551215d9
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 221 additions and 14 deletions

View file

@ -134,7 +134,8 @@ class AuditedAdmin(admin.ModelAdmin, AdminSortFields):
class ListHeaderAdmin(AuditedAdmin, OrderableFieldsMixin):
"""Custom admin to add a descriptive subheader to list views."""
"""Custom admin to add a descriptive subheader to list views
and custom table sort behaviour"""
def get_changelist(self, request, **kwargs):
"""Returns a custom ChangeList class, as opposed to the default.