from django.contrib import admin

from mozillians.geo.models import City, Country, Region


class CountryAdmin(admin.ModelAdmin):
    list_display = ('name', 'code')
    readonly_fields = ('name', 'mapbox_id')
    search_fields = ('name', 'code')

admin.site.register(Country, CountryAdmin)


class RegionAdmin(admin.ModelAdmin):
    list_display = ('name', 'country')
    readonly_fields = ('name', 'country', 'mapbox_id')
    search_fields = ('name', 'country__name', 'country__code')

admin.site.register(Region, RegionAdmin)


class CityAdmin(admin.ModelAdmin):
    list_display = ('name', 'region', 'country', 'lng', 'lat')
    readonly_fields = ('country', 'region', 'name', 'lat', 'lng', 'mapbox_id')
    search_fields = ('name', 'region__name', 'country__name', 'country__code')

admin.site.register(City, CityAdmin)

@@ -27,16 +27,80 @@
  admin%0A%0A
+from mozillians.common.mixins import MozilliansAdminExportMixin%0A
 from moz
@@ -164,24 +164,52 @@
 ountryAdmin(
+MozilliansAdminExportMixin, 
 admin.ModelA
@@ -392,24 +392,52 @@
 RegionAdmin(
+MozilliansAdminExportMixin, 
 admin.ModelA
@@ -660,16 +660,44 @@
 tyAdmin(
+MozilliansAdminExportMixin, 
 admin.Mo

Enable export in admin for the geo app.