empty school value 2
This commit is contained in:
parent
7352bb0ee2
commit
854bb1ed2d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user