Commit 8ddaf1f9 authored by Bram's avatar Bram

[enh] add __unicode__ to Country model

parent 151876b8
......@@ -7,6 +7,9 @@ class Country(models.Model):
name = models.CharField(max_length=255)
code = models.CharField(max_length=2)
def __unicode__(self):
return "%s - %s" % (self.name, self.code)
class Representative(models.Model):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment