empty school value 2

This commit is contained in:
Nikola Kubiczek 2022-12-07 09:09:01 +01:00
parent 7352bb0ee2
commit 854bb1ed2d

View File

@ -144,7 +144,10 @@ class SchoolYearFilter(admin.SimpleListFilter):
@admin.register(School)
class SchoolAdmin(admin.ModelAdmin):
list_display = ('name', 'in_current', 'email', 'phone')
empty_value_display = '-'
@admin.display(empty_value='-')
def view_name(self, obj):
return obj.name
admin.site.register(Student, StudentModelAdmin)