Add locations to test settings

This commit is contained in:
2023-11-24 15:15:20 +01:00
parent da944f9ef1
commit b50778b43f
2 changed files with 4 additions and 1 deletions

View File

@ -26,8 +26,10 @@ class GeoLocation(ScrobblableMixin):
unique_together = [["lat", "lon", "altitude"]]
def __str__(self):
return f"{self.lat} x {self.lon}"
if self.title:
return self.title
return f"{self.lat} x {self.lon}"
def get_absolute_url(self):
return reverse(

View File

@ -106,6 +106,7 @@ INSTALLED_APPS = [
"books",
"boardgames",
"videogames",
"locations",
"mathfilters",
"rest_framework",
"allauth",