From: Gwyn Hannay Date: Sat, 30 Jul 2022 03:32:07 +0000 (-0700) Subject: format code X-Git-Tag: v1.9.0-beta.rc1~35^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3cc5c301386d257657de5559813d46046b14eda;p=thirdparty%2Fpaperless-ngx.git format code --- diff --git a/src/documents/consumer.py b/src/documents/consumer.py index bbad88b125..9cc9b758d0 100644 --- a/src/documents/consumer.py +++ b/src/documents/consumer.py @@ -475,7 +475,7 @@ class Consumer(LoggingMixin): created=create_date, modified=create_date, storage_type=storage_type, - original_filename=self.filename + original_filename=self.filename, ) self.apply_overrides(document) diff --git a/src/documents/migrations/1023_document_original_filename.py b/src/documents/migrations/1023_document_original_filename.py index 53e451dbad..065956bd97 100644 --- a/src/documents/migrations/1023_document_original_filename.py +++ b/src/documents/migrations/1023_document_original_filename.py @@ -6,13 +6,20 @@ from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ - ('documents', '1022_paperlesstask'), + ("documents", "1022_paperlesstask"), ] operations = [ migrations.AddField( - model_name='document', - name='original_filename', - field=models.CharField(default=None, editable=False, help_text='The original name of the file when it was uploaded', max_length=1024, null=True, verbose_name='original filename'), + model_name="document", + name="original_filename", + field=models.CharField( + default=None, + editable=False, + help_text="The original name of the file when it was uploaded", + max_length=1024, + null=True, + verbose_name="original filename", + ), ), ] diff --git a/src/documents/models.py b/src/documents/models.py index c371bc99eb..f6df273adb 100644 --- a/src/documents/models.py +++ b/src/documents/models.py @@ -221,7 +221,7 @@ class Document(models.Model): default=None, unique=False, null=True, - help_text=_("The original name of the file when it was uploaded") + help_text=_("The original name of the file when it was uploaded"), ) archive_serial_number = models.IntegerField(