Skip to content

Commit

Permalink
happy linter happy life
Browse files Browse the repository at this point in the history
  • Loading branch information
scetron committed Sep 25, 2023
1 parent 3020d62 commit d675d1b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),


]


Original file line number Diff line number Diff line change
Expand Up @@ -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),
),


]


Original file line number Diff line number Diff line change
Expand Up @@ -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")},
),

]


2 changes: 1 addition & 1 deletion nautobot_device_onboarding/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d675d1b

Please sign in to comment.