11 lines
301 B
Python
11 lines
301 B
Python
from django.contrib import admin
|
|
from .models import City as CityModel
|
|
# Register your models here.
|
|
|
|
|
|
@admin.register(CityModel)
|
|
class CityAdmin(admin.ModelAdmin):
|
|
list_display = ['name', 'is_ostan', 'ostan', 'pv_id']
|
|
search_fields = ['name',]
|
|
list_filter = ['name', 'is_ostan', 'ostan',]
|