implement slug property and get_slug method on CustomLocation

This commit is contained in:
Gwendolyn 2023-12-26 17:11:46 +01:00
parent 86180c8fb0
commit 2745d3e644

View file

@ -457,3 +457,10 @@ class CustomLocation:
def get_icon(self):
return self.icon
def get_slug(self):
return self.pk
@cached_property
def slug(self):
return self.pk