mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-18 05:48:13 +00:00
Added pytest and broke up the consumer into file and mail
This commit is contained in:
1 parent
3bc89d23c8
commit
d8ad6b589b
12 files changed
+381
-44
No files matched your search
@@ -157,5 +157,9 @@ class Document(models.Model):
|
||||
@property
|
||||
def parseable_file_name(self):
|
||||
if self.sender and self.title:
|
||||
return "{} - {}.{}".format(self.sender, self.title, self.file_types)
|
||||
tags = ",".join([t.slug for t in self.tags.all()])
|
||||
if tags:
|
||||
return "{} - {} - {}.{}".format(
|
||||
self.sender, self.title, tags, self.file_type)
|
||||
return "{} - {}.{}".format(self.sender, self.title, self.file_type)
|
||||
return os.path.basename(self.source_path)
|
||||
Reference in new issue
Block a user