implement slug property and get_slug method on CustomLocation
This commit is contained in:
parent
86180c8fb0
commit
2745d3e644
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue