Backwards compatibility with "shelf" urls
This commit is contained in:
parent
4a490d25a8
commit
f8ce9b0956
4 changed files with 6 additions and 5 deletions
|
@ -49,7 +49,7 @@ class Shelf(OrderedCollectionMixin, BookWyrmModel):
|
|||
def get_remote_id(self):
|
||||
""" shelf identifier instead of id """
|
||||
base_path = self.user.remote_id
|
||||
return "%s/shelf/%s" % (base_path, self.identifier)
|
||||
return "%s/books/%s" % (base_path, self.identifier)
|
||||
|
||||
class Meta:
|
||||
""" user/shelf unqiueness """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue