i dont even know

This commit is contained in:
Nikola Kubiczek 2022-12-07 09:10:32 +01:00
parent 73ed58ab07
commit 9521c7a061

View File

@ -147,7 +147,7 @@ class SchoolAdmin(admin.ModelAdmin):
@admin.display(empty_value='-')
def view_name(self, obj):
return obj.name
return obj.name or '-'
admin.site.register(Student, StudentModelAdmin)