mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 19:12:20 +01:00
admin: reports: Hide song list
In 1b5b510, the complete list of songs was re-added. Loading this
list is super slow and should not happen.
This commit is contained in:
@ -32,6 +32,7 @@ class SongAdmin(admin.ModelAdmin):
|
||||
|
||||
@admin.register(ReportNote)
|
||||
class ReportNoteAdmin(admin.ModelAdmin):
|
||||
exclude = ('song',)
|
||||
list_display = ('song', 'note', 'user')
|
||||
search_fields = ('song__artist', 'song__title', 'user__name')
|
||||
readonly_fields = ('song_link',)
|
||||
|
||||
Reference in New Issue
Block a user