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