]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
format code
authorGwyn Hannay <gwyn@hannay.id.au>
Sat, 30 Jul 2022 03:32:07 +0000 (20:32 -0700)
committerTrenton Holmes <holmes.trenton@gmail.com>
Sat, 20 Aug 2022 21:31:30 +0000 (14:31 -0700)
src/documents/consumer.py
src/documents/migrations/1023_document_original_filename.py
src/documents/models.py

index bbad88b1258fb5fcf6084e552c353a0a2adc2d0a..9cc9b758d09aa1faf68a4d49488dce52dde657e3 100644 (file)
@@ -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)
index 53e451dbad60b18e838a6d257a8f220b3dcbc6b0..065956bd97ad0462d7ccec1827a9bae9aa1572eb 100644 (file)
@@ -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",
+            ),
         ),
     ]
index c371bc99ebfee4c05224f6036753bba5aa1f0ad1..f6df273adb016244ecb2a12f1b9db0b9cb509410 100644 (file)
@@ -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(