2020-05-13 15:54:40 +02:00
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
from .models import Polyclinic
|
|
|
|
|
|
|
|
# Register your models here.
|
|
|
|
@admin.register(Polyclinic)
|
|
|
|
class PolyclinicAdmin(admin.ModelAdmin):
|
2020-05-14 16:37:24 +02:00
|
|
|
list_display = ('name', 'hospital','phone', 'created_at')
|
|
|
|
ordering = ('name', 'hospital','created_at','updated_at')
|
2020-05-13 15:54:40 +02:00
|
|
|
search_fields = ('name', 'phone')
|