1
0
Fork 0

Remove slugs from shelf as their id has text in it already

This commit is contained in:
Vivianne Langdon 2022-03-02 01:37:58 -08:00
parent 846963ad18
commit 2b483488aa
3 changed files with 5 additions and 14 deletions

View file

@ -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