From d675d1bb92bdd03162bab323452f4536125d523a Mon Sep 17 00:00:00 2001 From: scetron Date: Mon, 25 Sep 2023 16:08:50 -0400 Subject: [PATCH] happy linter happy life --- .../0006_update_model_fields_part_1.py | 16 ++++------ .../0006_update_model_fields_part_2.py | 14 +++------ .../0006_update_model_fields_part_3.py | 30 ++++++++----------- nautobot_device_onboarding/models.py | 2 +- 4 files changed, 23 insertions(+), 39 deletions(-) diff --git a/nautobot_device_onboarding/migrations/0006_update_model_fields_part_1.py b/nautobot_device_onboarding/migrations/0006_update_model_fields_part_1.py index d63ad8c4..0d4fd83e 100644 --- a/nautobot_device_onboarding/migrations/0006_update_model_fields_part_1.py +++ b/nautobot_device_onboarding/migrations/0006_update_model_fields_part_1.py @@ -4,24 +4,18 @@ class Migration(migrations.Migration): - dependencies = [ - ('nautobot_device_onboarding', '0005_migrate_site_to_location_part_3'), - + ("nautobot_device_onboarding", "0005_migrate_site_to_location_part_3"), ] operations = [ migrations.AlterModelOptions( - name='onboardingtask', - options={'ordering': ('label',)}, + name="onboardingtask", + options={"ordering": ("label",)}, ), migrations.AlterField( - model_name='onboardingtask', - name='created', + model_name="onboardingtask", + name="created", field=models.DateTimeField(auto_now_add=True, null=True), ), - - ] - - diff --git a/nautobot_device_onboarding/migrations/0006_update_model_fields_part_2.py b/nautobot_device_onboarding/migrations/0006_update_model_fields_part_2.py index 94646bbe..26a75d97 100644 --- a/nautobot_device_onboarding/migrations/0006_update_model_fields_part_2.py +++ b/nautobot_device_onboarding/migrations/0006_update_model_fields_part_2.py @@ -4,20 +4,14 @@ class Migration(migrations.Migration): - dependencies = [ - ('nautobot_device_onboarding', '0006_update_model_fields_part_1'), + ("nautobot_device_onboarding", "0006_update_model_fields_part_1"), ] operations = [ - migrations.AlterField( - model_name='onboardingtask', - name='device_type', - field=models.CharField(blank=True, default='', max_length=255), + model_name="onboardingtask", + name="device_type", + field=models.CharField(blank=True, default="", max_length=255), ), - - ] - - diff --git a/nautobot_device_onboarding/migrations/0006_update_model_fields_part_3.py b/nautobot_device_onboarding/migrations/0006_update_model_fields_part_3.py index 8ad7688e..9d99d018 100644 --- a/nautobot_device_onboarding/migrations/0006_update_model_fields_part_3.py +++ b/nautobot_device_onboarding/migrations/0006_update_model_fields_part_3.py @@ -4,32 +4,28 @@ class Migration(migrations.Migration): - dependencies = [ - ('nautobot_device_onboarding', '0006_update_model_fields_part_2'), + ("nautobot_device_onboarding", "0006_update_model_fields_part_2"), ] operations = [ - migrations.AlterField( - model_name='onboardingtask', - name='failed_reason', - field=models.CharField(blank=True, default='', max_length=255), + migrations.AlterField( + model_name="onboardingtask", + name="failed_reason", + field=models.CharField(blank=True, default="", max_length=255), ), migrations.AlterField( - model_name='onboardingtask', - name='ip_address', - field=models.CharField(default='127.0.0.1', max_length=255), + model_name="onboardingtask", + name="ip_address", + field=models.CharField(default="127.0.0.1", max_length=255), ), migrations.AlterField( - model_name='onboardingtask', - name='status', - field=models.CharField(blank=True, default='', max_length=255), + model_name="onboardingtask", + name="status", + field=models.CharField(blank=True, default="", max_length=255), ), migrations.AlterUniqueTogether( - name='onboardingtask', - unique_together={('label', 'ip_address')}, + name="onboardingtask", + unique_together={("label", "ip_address")}, ), - ] - - diff --git a/nautobot_device_onboarding/models.py b/nautobot_device_onboarding/models.py index 3c722afa..ee583a4b 100644 --- a/nautobot_device_onboarding/models.py +++ b/nautobot_device_onboarding/models.py @@ -65,7 +65,7 @@ class OnboardingTask(BaseModel, ChangeLoggedModel): choices=OnboardingFailChoices, help_text="Reason why the task failed (optional)", blank=True, - default="" + default="", ) message = models.CharField(max_length=511, blank=True)