Fix admin for SendQueue so message is in raw_id_fields
- Legacy-Id: 6771
This commit is contained in:
parent
85d998a18a
commit
6c2b3be8d6
|
@ -17,7 +17,7 @@ class SendQueueAdmin(admin.ModelAdmin):
|
|||
list_display = ["time", "by", "message", "send_at", "sent_at"]
|
||||
list_filter = ["time", "send_at", "sent_at"]
|
||||
search_fields = ["message__body"]
|
||||
raw_id_fields = ["by"]
|
||||
raw_id_fields = ["by", "message"]
|
||||
ordering = ["-time"]
|
||||
|
||||
admin.site.register(SendQueue, SendQueueAdmin)
|
||||
|
|
Loading…
Reference in a new issue