mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 18:52:23 +01:00
Fix song display in admin w/o uploader
This commit is contained in:
@ -10,4 +10,7 @@ class SongAdmin(admin.ModelAdmin):
|
||||
|
||||
@staticmethod
|
||||
def user_name(obj):
|
||||
return obj.user.name
|
||||
try:
|
||||
return obj.user.name
|
||||
except AttributeError:
|
||||
return '<unknown>'
|
||||
|
||||
Reference in New Issue
Block a user