Remove slugs from shelf as their id has text in it already
This commit is contained in:
parent
846963ad18
commit
2b483488aa
3 changed files with 5 additions and 14 deletions
|
@ -59,6 +59,10 @@ class Shelf(OrderedCollectionMixin, BookWyrmModel):
|
|||
"""can the shelf be safely deleted?"""
|
||||
return self.editable and not self.shelfbook_set.exists()
|
||||
|
||||
def get_remote_id(self):
|
||||
"""do not use slugs"""
|
||||
return self.get_permalink()
|
||||
|
||||
def get_permalink(self):
|
||||
"""shelf identifier instead of id"""
|
||||
base_path = self.user.remote_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue