Skip to content

Commit

Permalink
[#2167] Fix unknown countries in recipient country model
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperBrandt committed May 18, 2016
1 parent 5124b27 commit 184e930
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion akvo/rsr/models/country.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ class RecipientCountry(models.Model):

def __unicode__(self):
if self.country:
country_unicode = self.iati_country().name
try:
country_unicode = self.iati_country().name
except codelist_models.Country.DoesNotExist:
country_unicode = self.country
else:
country_unicode = u'%s' % _(u'No country specified')

Expand Down

0 comments on commit 184e930

Please sign in to comment.