fix url to uploaded docs
This commit is contained in:
parent
9d619f035e
commit
954cdd8d97
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ class Document(SoftDeletableModel):
|
|||
@property
|
||||
def url(self):
|
||||
if self.file:
|
||||
return self.file.url
|
||||
return f"/docs/{self.file.url}"
|
||||
return self.external_url
|
||||
|
||||
class Meta:
|
||||
|
|
Loading…
Reference in a new issue