Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
fix language country region name property method
Browse files Browse the repository at this point in the history
  • Loading branch information
swilcox committed May 14, 2015
1 parent a54f8af commit e868da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion td/uw/models.py
Expand Up @@ -175,7 +175,7 @@ def cc(self):

@property
def lr(self):
if self.country:
if self.country and self.country.region:
return self.country.region.name.encode("utf-8")
return ""

Expand Down

0 comments on commit e868da6

Please sign in to comment.