Backwards compatibility with "shelf" urls

This commit is contained in:
Mouse Reeve
2021-03-31 09:50:16 -07:00
parent 4a490d25a8
commit f8ce9b0956
4 changed files with 6 additions and 5 deletions

View File

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