diff --git a/membershipworks/admin.py b/membershipworks/admin.py index 7fa5af1..da1253e 100644 --- a/membershipworks/admin.py +++ b/membershipworks/admin.py @@ -123,6 +123,7 @@ class EventInvoiceAdmin(admin.ModelAdmin): "event", "_event_start", "_event_end", + "_event_instructor", "date_submitted", "date_paid", "amount", @@ -141,6 +142,10 @@ class EventInvoiceAdmin(admin.ModelAdmin): ] date_hierarchy = "date_submitted" + @admin.display(ordering="event__instructor") + def _event_instructor(self, obj): + return obj.event.instructor + @admin.display(ordering="event__start") def _event_start(self, obj): return obj.event.start