This commit is contained in:
Nikola Kubiczek 2022-12-07 09:12:24 +01:00
parent 9521c7a061
commit 13cdd7a53f

View File

@ -145,7 +145,7 @@ class SchoolYearFilter(admin.SimpleListFilter):
class SchoolAdmin(admin.ModelAdmin): class SchoolAdmin(admin.ModelAdmin):
list_display = ('view_name', 'in_current', 'email', 'phone') list_display = ('view_name', 'in_current', 'email', 'phone')
@admin.display(empty_value='-') @admin.display(description='Nazwa', empty_value='-')
def view_name(self, obj): def view_name(self, obj):
return obj.name or '-' return obj.name or '-'