first commit
This commit is contained in:
commit
3e4574dcdd
163 files changed
+3559
No files matched your search
@@ -0,0 +1,10 @@
|
||||
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',]
|
||||
Reference in new issue
Block a user