# Path: washmap/country/models.py
# class Country(TranslatableModel):
# 
#     class Meta:
#         verbose_name_plural = 'Countries'
#         ordering = ['slug']
# 
#     translations = TranslatedFields(
#         local_name=models.CharField(max_length=255)
#     )
#     region = models.ForeignKey(Region, null=True, blank=True)
#     name = models.CharField(max_length=255)
#     slug = models.SlugField(unique=True)
#     created_at = models.DateTimeField(null=True, blank=True)
#     updated_at = models.DateTimeField(null=True, blank=True)
#     visible = models.IntegerField(null=True, blank=True)
#     currency_name = models.CharField(max_length=40, blank=True)
#     last_contributor_id = models.IntegerField(null=True, blank=True)
#     last_contributed_on = models.DateTimeField(null=True, blank=True)
#     last_contributed_sector = models.CharField(max_length=255, blank=True)
#     country_meta = CountryField(null=True, blank=True)
#     boundary = models.TextField(
#         blank=True,
#         help_text="A geojson representation of the geographical boundary"
#     )
# 
#     @property
#     def code(self):
#         return self.country_meta.code
# 
#     def __unicode__(self):
#         return self.local_name
# 
#     def get_absolute_url(self):
#         return reverse('country-comparison', kwargs={'country': self.slug})
# 
# class Region(TranslatableModel):
#     translations = TranslatedFields(
#         local_name=models.CharField(max_length=255)
#     )
#     name = models.CharField(max_length=255)
#     water_declaration = models.CharField(max_length=255, blank=True)
#     sanitation_declaration = models.CharField(max_length=255, blank=True)
#     slug = models.SlugField(unique=True)
#     created_at = models.DateTimeField(null=True, blank=True)
#     updated_at = models.DateTimeField(null=True, blank=True)
#     coords = models.TextField(max_length=255, blank=True)
# 
#     def __unicode__(self):
#         return self.name


from django.contrib import admin
from hvad.admin import TranslatableAdmin
from .models import (
    Country,
    Region,
)
from __future__ import absolute_import, unicode_literals




class CountryAdmin(TranslatableAdmin):
    pass


class RegionAdmin(TranslatableAdmin):
    pass



# Path: washmap/country/models.py
# class Country(TranslatableModel):
# 
#     class Meta:
#         verbose_name_plural = 'Countries'
#         ordering = ['slug']
# 
#     translations = TranslatedFields(
#         local_name=models.CharField(max_length=255)
#     )
#     region = models.ForeignKey(Region, null=True, blank=True)
#     name = models.CharField(max_length=255)
#     slug = models.SlugField(unique=True)
#     created_at = models.DateTimeField(null=True, blank=True)
#     updated_at = models.DateTimeField(null=True, blank=True)
#     visible = models.IntegerField(null=True, blank=True)
#     currency_name = models.CharField(max_length=40, blank=True)
#     last_contributor_id = models.IntegerField(null=True, blank=True)
#     last_contributed_on = models.DateTimeField(null=True, blank=True)
#     last_contributed_sector = models.CharField(max_length=255, blank=True)
#     country_meta = CountryField(null=True, blank=True)
#     boundary = models.TextField(
#         blank=True,
#         help_text="A geojson representation of the geographical boundary"
#     )
# 
#     @property
#     def code(self):
#         return self.country_meta.code
# 
#     def __unicode__(self):
#         return self.local_name
# 
#     def get_absolute_url(self):
#         return reverse('country-comparison', kwargs={'country': self.slug})
# 
# class Region(TranslatableModel):
#     translations = TranslatedFields(
#         local_name=models.CharField(max_length=255)
#     )
#     name = models.CharField(max_length=255)
#     water_declaration = models.CharField(max_length=255, blank=True)
#     sanitation_declaration = models.CharField(max_length=255, blank=True)
#     slug = models.SlugField(unique=True)
#     created_at = models.DateTimeField(null=True, blank=True)
#     updated_at = models.DateTimeField(null=True, blank=True)
#     coords = models.TextField(max_length=255, blank=True)
# 
#     def __unicode__(self):
#         return self.name


# Path: washmap/country/admin.py
from django.contrib import admin
from hvad.admin import TranslatableAdmin
from .models import (
    Country,
    Region,
)

from __future__ import absolute_import, unicode_literals




class CountryAdmin(TranslatableAdmin):
    pass


class RegionAdmin(TranslatableAdmin):
    pass



admin.site.register(Region, RegionAdmin)