We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96acfa2 commit da625e5Copy full SHA for da625e5
ietf/message/admin.py
@@ -6,6 +6,7 @@ class MessageAdmin(admin.ModelAdmin):
6
list_display = ["subject", "by", "time", "groups"]
7
search_fields = ["subject", "body"]
8
raw_id_fields = ["by"]
9
+ ordering = ["-time"]
10
11
def groups(self, instance):
12
return ", ".join(g.acronym for g in instance.related_groups.all())
@@ -17,5 +18,6 @@ class SendQueueAdmin(admin.ModelAdmin):
17
18
list_filter = ["time", "send_at", "sent_at"]
19
search_fields = ["message__body"]
20
21
22
23
admin.site.register(SendQueue, SendQueueAdmin)
0 commit comments