# Path: washmap/stats/models.py
# class StatDescription(Sortable):
#     class Meta(Sortable.Meta):
#         pass
# 
#     description = models.TextField()
#     code = models.SlugField()
# 
#     def __unicode__(self):
#         return self.description
# 
# class StatValue(models.Model):
#     class Meta:
#         unique_together = ('description', 'country', 'year')
# 
#     description = models.ForeignKey(StatDescription)
#     country = models.ForeignKey(Country)
#     year = models.IntegerField()
#     value = models.DecimalField(max_digits=20, decimal_places=10, null=True, blank=True)  # nopep8
# 
#     def __unicode__(self):
#         return "%s, %s, %s" % (
#             self.country,
#             self.year,
#             self.value
#         )


from django.contrib import admin
from .models import (
    StatDescription,
    StatValue
)
from __future__ import absolute_import, unicode_literals





class StatValueAdmin(admin.ModelAdmin):
    list_display = ('description', 'year', 'country', 'value')
    list_filter = ('description', 'country', 'year')


admin.site.register(StatDescription)

# Path: washmap/stats/models.py
# class StatDescription(Sortable):
#     class Meta(Sortable.Meta):
#         pass
# 
#     description = models.TextField()
#     code = models.SlugField()
# 
#     def __unicode__(self):
#         return self.description
# 
# class StatValue(models.Model):
#     class Meta:
#         unique_together = ('description', 'country', 'year')
# 
#     description = models.ForeignKey(StatDescription)
#     country = models.ForeignKey(Country)
#     year = models.IntegerField()
#     value = models.DecimalField(max_digits=20, decimal_places=10, null=True, blank=True)  # nopep8
# 
#     def __unicode__(self):
#         return "%s, %s, %s" % (
#             self.country,
#             self.year,
#             self.value
#         )


# Path: washmap/stats/admin.py
from django.contrib import admin
from .models import (
    StatDescription,
    StatValue
)

from __future__ import absolute_import, unicode_literals





class StatValueAdmin(admin.ModelAdmin):
    list_display = ('description', 'year', 'country', 'value')
    list_filter = ('description', 'country', 'year')


admin.site.register(StatDescription)

admin.site.register(StatValue, StatValueAdmin)