Commits

Branko Vukelic committed 207b411

Added __unicode__ and Meta to model

Comments (0)

Files changed (1)

international/models.py

     continent = models.CharField(_('continent'), max_length=2,
                                  choices=continents)
 
+    def __unicode__(self):
+        return self.get_code_display()
+
+    class Meta:
+        verbose_name = _('country')
+        verbose_name_plural = _('countries')