Optimize templates & clean code

This commit is contained in:
Nyymix 2025-04-26 20:39:57 +03:00
parent 0c1c888547
commit 86d9ca5066
11 changed files with 98 additions and 48 deletions

View file

@ -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)