i dont even know
This commit is contained in:
parent
73ed58ab07
commit
9521c7a061
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user