Skip to content

Commit

Permalink
Lint cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
blag committed Oct 28, 2016
1 parent 46e9182 commit c689c16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cities/models.py
Expand Up @@ -55,9 +55,9 @@ class Meta:
@property
def hierarchy(self):
"""Get hierarchy, root first"""
list = self.parent.hierarchy if self.parent else []
list.append(self)
return list
lst = self.parent.hierarchy if self.parent else []
lst.append(self)
return lst

def get_absolute_url(self):
return "/".join([place.slug for place in self.hierarchy])
Expand Down

0 comments on commit c689c16

Please sign in to comment.