mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
todo note
This commit is contained in:
parent
a4bd2d687e
commit
6b3ec52ed4
1 changed files with 1 additions and 0 deletions
|
|
@ -230,6 +230,7 @@ class Document(models.Model):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def file_type(self):
|
def file_type(self):
|
||||||
|
# TODO: this is not stable across python versions
|
||||||
return mimetypes.guess_extension(str(self.mime_type))
|
return mimetypes.guess_extension(str(self.mime_type))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue