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:
Daan Sprenkels
2020-06-15 17:07:53 +02:00
parent bb6166c1db
commit b604ac9955

View File

@ -32,6 +32,7 @@ class SongAdmin(admin.ModelAdmin):
@admin.register(ReportNote) @admin.register(ReportNote)
class ReportNoteAdmin(admin.ModelAdmin): class ReportNoteAdmin(admin.ModelAdmin):
exclude = ('song',)
list_display = ('song', 'note', 'user') list_display = ('song', 'note', 'user')
search_fields = ('song__artist', 'song__title', 'user__name') search_fields = ('song__artist', 'song__title', 'user__name')
readonly_fields = ('song_link',) readonly_fields = ('song_link',)