From ee706cfe0f1e9f7bb529442d6bdd8df01863a237 Mon Sep 17 00:00:00 2001 From: Joshua Rubingh Date: Thu, 14 May 2020 16:37:24 +0200 Subject: [PATCH] Show hospital in the polyclinic list --- polyclinic_scheduling/apps/polyclinic/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polyclinic_scheduling/apps/polyclinic/admin.py b/polyclinic_scheduling/apps/polyclinic/admin.py index dcb5e0a..9cd6325 100644 --- a/polyclinic_scheduling/apps/polyclinic/admin.py +++ b/polyclinic_scheduling/apps/polyclinic/admin.py @@ -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')