mirror of
https://github.com/nikdoof/vapemap.git
synced 2025-12-13 22:42:14 +00:00
Add Country to Counties admin.
This commit is contained in:
@@ -111,7 +111,7 @@ class ClaimAdmin(admin.ModelAdmin):
|
||||
|
||||
|
||||
class CountyAdmin(admin.ModelAdmin):
|
||||
list_display = ['name', 'address_count']
|
||||
list_display = ['pk', 'name', 'country', 'address_count']
|
||||
|
||||
def address_count(self, obj):
|
||||
return obj.address_count
|
||||
@@ -123,7 +123,7 @@ class CountyAdmin(admin.ModelAdmin):
|
||||
|
||||
|
||||
class CountryAdmin(admin.ModelAdmin):
|
||||
list_display = ['name', 'address_count', 'county_count']
|
||||
list_display = ['pk', 'name', 'address_count', 'county_count']
|
||||
|
||||
def address_count(self, obj):
|
||||
return obj.address_count
|
||||
|
||||
Reference in New Issue
Block a user