Skip to content
Snippets Groups Projects
Commit b3ccdf5d authored by Benjamin Hättasch's avatar Benjamin Hättasch Committed by Nadja Geisler
Browse files

Remove inline editing on AKSlot admin page

This reduces the amount of queries from over 450 for a full list (100 entries) to about 50, resulting in a drop of execution time from about 20 seconds to less than one second
This fixes #106
parent ac506e88
No related branches found
No related tags found
No related merge requests found
...@@ -242,7 +242,6 @@ class AKSlotAdmin(admin.ModelAdmin): ...@@ -242,7 +242,6 @@ class AKSlotAdmin(admin.ModelAdmin):
model = AKSlot model = AKSlot
list_display = ['id', 'ak', 'room', 'start', 'duration', 'event'] list_display = ['id', 'ak', 'room', 'start', 'duration', 'event']
list_filter = ['room', 'event'] list_filter = ['room', 'event']
list_editable = ['ak', 'room', 'start', 'duration']
ordering = ['start'] ordering = ['start']
readonly_fields = ['ak_details_link', 'updated'] readonly_fields = ['ak_details_link', 'updated']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment