im going to combust
This commit is contained in:
parent
854bb1ed2d
commit
73ed58ab07
@ -143,7 +143,7 @@ class SchoolYearFilter(admin.SimpleListFilter):
|
|||||||
|
|
||||||
@admin.register(School)
|
@admin.register(School)
|
||||||
class SchoolAdmin(admin.ModelAdmin):
|
class SchoolAdmin(admin.ModelAdmin):
|
||||||
list_display = ('name', 'in_current', 'email', 'phone')
|
list_display = ('view_name', 'in_current', 'email', 'phone')
|
||||||
|
|
||||||
@admin.display(empty_value='-')
|
@admin.display(empty_value='-')
|
||||||
def view_name(self, obj):
|
def view_name(self, obj):
|
||||||
|
Loading…
Reference in New Issue
Block a user