black
This commit is contained in:
parent
2b483488aa
commit
440e2f8806
5 changed files with 15 additions and 6 deletions
|
@ -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}"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue