1
0
Fork 0
This commit is contained in:
Vivianne Langdon 2022-03-02 01:47:08 -08:00
parent 2b483488aa
commit 440e2f8806
5 changed files with 15 additions and 6 deletions

View file

@ -40,7 +40,7 @@ class BookWyrmModel(models.Model):
base_path = f"https://{DOMAIN}"
if hasattr(self, "user"):
base_path = f"{base_path}{self.user.local_path}"
model_name = type(self).__name__.lower()
return f"{base_path}/{model_name}/{self.id}"