Add locations to test settings
This commit is contained in:
@ -26,8 +26,10 @@ class GeoLocation(ScrobblableMixin):
|
|||||||
unique_together = [["lat", "lon", "altitude"]]
|
unique_together = [["lat", "lon", "altitude"]]
|
||||||
|
|
||||||
def __str__(self):
|
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):
|
def get_absolute_url(self):
|
||||||
return reverse(
|
return reverse(
|
||||||
|
|||||||
@ -106,6 +106,7 @@ INSTALLED_APPS = [
|
|||||||
"books",
|
"books",
|
||||||
"boardgames",
|
"boardgames",
|
||||||
"videogames",
|
"videogames",
|
||||||
|
"locations",
|
||||||
"mathfilters",
|
"mathfilters",
|
||||||
"rest_framework",
|
"rest_framework",
|
||||||
"allauth",
|
"allauth",
|
||||||
|
|||||||
Reference in New Issue
Block a user