Redownload when region data version changes
This commit is contained in:
@@ -22,7 +22,7 @@ class AdventureAdmin(admin.ModelAdmin):
|
||||
|
||||
class CountryAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'country_code', 'number_of_regions')
|
||||
list_filter = ('country_code', 'subregion')
|
||||
list_filter = ('subregion',)
|
||||
|
||||
def number_of_regions(self, obj):
|
||||
return Region.objects.filter(country=obj).count()
|
||||
@@ -32,6 +32,7 @@ class CountryAdmin(admin.ModelAdmin):
|
||||
|
||||
class RegionAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'country', 'number_of_visits')
|
||||
list_filter = ('country',)
|
||||
# list_filter = ('country', 'number_of_visits')
|
||||
|
||||
def number_of_visits(self, obj):
|
||||
|
||||
Reference in New Issue
Block a user