mirror of
https://git.sdbs.cz/sdbs/pile.git
synced 2025-05-10 00:12:18 +00:00
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
|
@property
|
||||||
def url(self):
|
def url(self):
|
||||||
if self.file:
|
if self.file:
|
||||||
return self.file.url
|
return f"/docs/{self.file.url}"
|
||||||
return self.external_url
|
return self.external_url
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
Loading…
Add table
Reference in a new issue