feat(config_management): ConfigGroupHosts and ConfigGroupSoftware do not require notes

ref: #804 #793 #794
This commit is contained in:
2025-06-07 17:48:56 +09:30
parent 7b55d37117
commit ab68b56056
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,27 @@
# Generated by Django 5.1.9 on 2025-06-07 08:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("config_management", "0014_alter_configgrouphosts_group_and_more"),
]
operations = [
migrations.RemoveField(
model_name="configgroupsoftwarecenturionmodelnote",
name="centurionmodelnote_ptr",
),
migrations.RemoveField(
model_name="configgroupsoftwarecenturionmodelnote",
name="model",
),
migrations.DeleteModel(
name="ConfigGroupHostsCenturionModelNote",
),
migrations.DeleteModel(
name="ConfigGroupSoftwareCenturionModelNote",
),
]

View File

@ -335,6 +335,8 @@ class ConfigGroupHosts(
CenturionModel,
):
_notes_enabled = False
def validate_host_no_parent_group(self):
""" Ensure that the host is not within any parent group
@ -390,6 +392,8 @@ class ConfigGroupSoftware(
):
""" A way to configure software to install/remove per config group """
_notes_enabled = False
class Meta:
ordering = [