Show hospital in the polyclinic list

This commit is contained in:
Joshua Rubingh 2020-05-14 16:37:24 +02:00
parent d9899f2d56
commit ee706cfe0f
1 changed files with 2 additions and 2 deletions

View File

@ -5,6 +5,6 @@ from .models import Polyclinic
# Register your models here.
@admin.register(Polyclinic)
class PolyclinicAdmin(admin.ModelAdmin):
list_display = ('name', 'phone', 'created_at')
ordering = ('name', 'created_at','updated_at')
list_display = ('name', 'hospital','phone', 'created_at')
ordering = ('name', 'hospital','created_at','updated_at')
search_fields = ('name', 'phone')