mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-14 00:26:21 +00:00
Added pytest and broke up the consumer into file and mail
This commit is contained in:
@@ -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