Commit 8e9876d6 authored by Jamesie Pic's avatar Jamesie Pic

Added Country.get_absolute_url

parent b646a013
......@@ -80,6 +80,10 @@ class Country(models.Model):
def __unicode__(self):
return u'{} [{}]'.format(, self.code)
def get_absolute_url(self):
return reverse('representatives:representative-list',
class Representative(HashableModel, TimeStampedModel):
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