# Admin backends

* disables certain admin backends
* adds proper ordering to server message admin overview
This commit is contained in:
2024-04-03 08:29:19 +02:00
parent 09546212b9
commit 04dc7fcd30
4 changed files with 6 additions and 2 deletions

View File

@@ -17,6 +17,9 @@ class ServerMessageAdmin(admin.ModelAdmin):
search_fields = [
"subject"
]
ordering = [
"-publish_on"
]
def save_model(self, request, obj, form, change):
obj.save(user=request.user)