Optimize templates & clean code
This commit is contained in:
parent
0c1c888547
commit
86d9ca5066
11 changed files with 98 additions and 48 deletions
|
@ -20,7 +20,6 @@ class Location(models.Model):
|
|||
unique_together = ('place', "city")
|
||||
ordering = ['city']
|
||||
|
||||
|
||||
def __str__(self):
|
||||
if self.place:
|
||||
return '{0}, {1}'.format(self.city, self.place)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue