poli_planning/polyclinic_scheduling/apps/hospital/admin.py

11 lines
384 B
Python
Raw Normal View History

2020-05-13 15:54:40 +02:00
from django.contrib import admin
from .models import Hospital
# Register your models here.
@admin.register(Hospital)
class HospitalAdmin(admin.ModelAdmin):
list_display = ('name', 'address', 'postal_code', 'city', 'phone', 'created_at')
ordering = ('name', 'city', 'created_at','updated_at')
search_fields = ('name', 'address','postal_code','city', 'phone')