Skip to content

Commit

Permalink
update migrations to inherit defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
jtdub committed Dec 19, 2024
1 parent 8119b47 commit fd77fcd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

from django.db import migrations, models

from nautobot_golden_config.utilities.constant import (
ENABLE_BACKUP,
ENABLE_COMPLIANCE,
ENABLE_DEPLOY,
ENABLE_INTENDED,
ENABLE_PLAN,
)


class Migration(migrations.Migration):
dependencies = [
Expand All @@ -12,26 +20,26 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name="goldenconfigsetting",
name="backup_enabled",
field=models.BooleanField(default=True),
field=models.BooleanField(default=ENABLE_BACKUP),
),
migrations.AddField(
model_name="goldenconfigsetting",
name="compliance_enabled",
field=models.BooleanField(default=True),
field=models.BooleanField(default=ENABLE_COMPLIANCE),
),
migrations.AddField(
model_name="goldenconfigsetting",
name="deploy_enabled",
field=models.BooleanField(default=True),
field=models.BooleanField(default=ENABLE_DEPLOY),
),
migrations.AddField(
model_name="goldenconfigsetting",
name="intended_enabled",
field=models.BooleanField(default=True),
field=models.BooleanField(default=ENABLE_INTENDED),
),
migrations.AddField(
model_name="goldenconfigsetting",
name="plan_enabled",
field=models.BooleanField(default=True),
field=models.BooleanField(default=ENABLE_PLAN),
),
]
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def is_truthy(arg):
namespace.configure(
{
"nautobot_golden_config": {
"nautobot_ver": "2.3.13",
"nautobot_ver": "2.3.1",
"project_name": "nautobot-golden-config",
"python_ver": "3.11",
"local": False,
Expand Down

0 comments on commit fd77fcd

Please sign in to comment.