README more appealing (has feature list), added RequestConfig, added ability to speci...
[django-tables2.git] / example / app / models.py
index e96c9c05f67b710205ff6afe9f148c0f2a9c6b3b..7b7821ed73c9e80ff3aec0c856863e1d46cfd0ed 100644 (file)
@@ -1,15 +1,17 @@
+# -*- coding: utf-8 -*-
 from django.db import models
+from django.utils.translation import ugettext_lazy as _
 
 
 class Country(models.Model):
     """Represents a geographical Country"""
     name = models.CharField(max_length=100)
-    population = models.PositiveIntegerField()
+    population = models.PositiveIntegerField(verbose_name=u"PoblaciĆ³n")
     tz = models.CharField(max_length=50)
     visits = models.PositiveIntegerField()
 
     class Meta:
-        verbose_name_plural = 'Countries'
+        verbose_name_plural = _("Countries")
 
     def __unicode__(self):
         return self.name