From bbaeb3fbceaeb3eefb1f5a325ceb6f54a888a2d6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alexa=20Valentov=C3=A1?= <git@imaniti.org>
Date: Thu, 26 Sep 2024 19:41:23 +0200
Subject: [PATCH] run hooks

---
 .../commands/import_old_contracts.py          |  8 +-
 ...r_signeehistoricalname_options_and_more.py | 82 ++++++++++++-------
 contracts/models.py                           |  4 +-
 3 files changed, 59 insertions(+), 35 deletions(-)

diff --git a/contracts/management/commands/import_old_contracts.py b/contracts/management/commands/import_old_contracts.py
index 463be4a..34b618c 100644
--- a/contracts/management/commands/import_old_contracts.py
+++ b/contracts/management/commands/import_old_contracts.py
@@ -638,7 +638,9 @@ class Command(BaseCommand):
         else:
             model = Signee
             representative_model = SigneeSignatureRepresentative
-            instance = model(name=name, is_auto_imported=True, address_country="Česká republika")
+            instance = model(
+                name=name, is_auto_imported=True, address_country="Česká republika"
+            )
 
         if model is Signee:
             if (
@@ -1085,7 +1087,9 @@ class Command(BaseCommand):
                         try:
                             type_instance = ContractType.objects.get(name=value)
                         except ContractType.DoesNotExist:
-                            type_instance = ContractType(is_auto_imported=True, name=value)
+                            type_instance = ContractType(
+                                is_auto_imported=True, name=value
+                            )
 
                         types.append(type_instance)
 
diff --git a/contracts/migrations/0072_alter_signeehistoricalname_options_and_more.py b/contracts/migrations/0072_alter_signeehistoricalname_options_and_more.py
index 57dac3d..487eeb5 100644
--- a/contracts/migrations/0072_alter_signeehistoricalname_options_and_more.py
+++ b/contracts/migrations/0072_alter_signeehistoricalname_options_and_more.py
@@ -4,59 +4,79 @@ from django.db import migrations, models
 
 
 class Migration(migrations.Migration):
-
     dependencies = [
-        ('contracts', '0071_signeehistoricalname'),
+        ("contracts", "0071_signeehistoricalname"),
     ]
 
     operations = [
         migrations.AlterModelOptions(
-            name='signeehistoricalname',
-            options={'verbose_name': 'Historické jméno smluvní strany', 'verbose_name_plural': 'Historická jména smluvní strany'},
+            name="signeehistoricalname",
+            options={
+                "verbose_name": "Historické jméno smluvní strany",
+                "verbose_name_plural": "Historická jména smluvní strany",
+            },
         ),
         migrations.AddField(
-            model_name='contract',
-            name='is_auto_imported',
-            field=models.BooleanField(default=False, verbose_name='Je automaticky importovaná'),
+            model_name="contract",
+            name="is_auto_imported",
+            field=models.BooleanField(
+                default=False, verbose_name="Je automaticky importovaná"
+            ),
         ),
         migrations.AddField(
-            model_name='contractee',
-            name='is_auto_imported',
-            field=models.BooleanField(default=False, verbose_name='Je automaticky importovaná'),
+            model_name="contractee",
+            name="is_auto_imported",
+            field=models.BooleanField(
+                default=False, verbose_name="Je automaticky importovaná"
+            ),
         ),
         migrations.AddField(
-            model_name='contracteesignature',
-            name='is_auto_imported',
-            field=models.BooleanField(default=False, verbose_name='Je automaticky importovaná'),
+            model_name="contracteesignature",
+            name="is_auto_imported",
+            field=models.BooleanField(
+                default=False, verbose_name="Je automaticky importovaná"
+            ),
         ),
         migrations.AddField(
-            model_name='contractfile',
-            name='is_auto_imported',
-            field=models.BooleanField(default=False, verbose_name='Je automaticky importovaná'),
+            model_name="contractfile",
+            name="is_auto_imported",
+            field=models.BooleanField(
+                default=False, verbose_name="Je automaticky importovaná"
+            ),
         ),
         migrations.AddField(
-            model_name='contractfilingarea',
-            name='is_auto_imported',
-            field=models.BooleanField(default=False, verbose_name='Je automaticky importovaná'),
+            model_name="contractfilingarea",
+            name="is_auto_imported",
+            field=models.BooleanField(
+                default=False, verbose_name="Je automaticky importovaná"
+            ),
         ),
         migrations.AddField(
-            model_name='contractissue',
-            name='is_auto_imported',
-            field=models.BooleanField(default=False, verbose_name='Je automaticky importovaná'),
+            model_name="contractissue",
+            name="is_auto_imported",
+            field=models.BooleanField(
+                default=False, verbose_name="Je automaticky importovaná"
+            ),
         ),
         migrations.AddField(
-            model_name='contracttype',
-            name='is_auto_imported',
-            field=models.BooleanField(default=False, verbose_name='Je automaticky importovaná'),
+            model_name="contracttype",
+            name="is_auto_imported",
+            field=models.BooleanField(
+                default=False, verbose_name="Je automaticky importovaná"
+            ),
         ),
         migrations.AddField(
-            model_name='signee',
-            name='is_auto_imported',
-            field=models.BooleanField(default=False, verbose_name='Je automaticky importovaná'),
+            model_name="signee",
+            name="is_auto_imported",
+            field=models.BooleanField(
+                default=False, verbose_name="Je automaticky importovaná"
+            ),
         ),
         migrations.AddField(
-            model_name='signeesignature',
-            name='is_auto_imported',
-            field=models.BooleanField(default=False, verbose_name='Je automaticky importovaná'),
+            model_name="signeesignature",
+            name="is_auto_imported",
+            field=models.BooleanField(
+                default=False, verbose_name="Je automaticky importovaná"
+            ),
         ),
     ]
diff --git a/contracts/models.py b/contracts/models.py
index e5eb7d9..5f91645 100644
--- a/contracts/models.py
+++ b/contracts/models.py
@@ -347,7 +347,7 @@ class Contractee(
         "Je automaticky importovaná",
         default=False,
     )
-    
+
     name = models.CharField(
         max_length=256,
         default=get_default_contractee_name,
@@ -1072,7 +1072,7 @@ class SigneeSignature(models.Model):
         "Je automaticky importovaná",
         default=False,
     )
-    
+
     signee = models.ForeignKey(
         Signee,
         on_delete=models.CASCADE,
-- 
GitLab