_
This commit is contained in:
parent
9521c7a061
commit
13cdd7a53f
@ -145,7 +145,7 @@ class SchoolYearFilter(admin.SimpleListFilter):
|
||||
class SchoolAdmin(admin.ModelAdmin):
|
||||
list_display = ('view_name', 'in_current', 'email', 'phone')
|
||||
|
||||
@admin.display(empty_value='-')
|
||||
@admin.display(description='Nazwa', empty_value='-')
|
||||
def view_name(self, obj):
|
||||
return obj.name or '-'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user