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
1 merge request!94Improve admin (faster loading, restriction of foreign key & m2m choices)
......@@ -242,7 +242,6 @@ class AKSlotAdmin(admin.ModelAdmin):
model = AKSlot
list_display = ['id', 'ak', 'room', 'start', 'duration', 'event']
list_filter = ['room', 'event']
list_editable = ['ak', 'room', 'start', 'duration']
ordering = ['start']
readonly_fields = ['ak_details_link', 'updated']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment