reports: Make songs readonly for performance

This commit is contained in:
Daan Sprenkels
2019-01-30 13:19:46 +01:00
parent 3c080ced24
commit 4ac3d6e425

View File

@ -32,3 +32,4 @@ class SongAdmin(admin.ModelAdmin):
class ReportNoteAdmin(admin.ModelAdmin):
list_display = ('song', 'note', 'user')
search_fields = ('song__artist', 'song__title', 'user__name')
readonly_fields = ('song',)