feat(itim): Ability to add and configure cluster

ref: #244 #71
This commit is contained in:
2024-08-17 17:50:08 +09:30
parent efce9c0219
commit 30bd8aa483
6 changed files with 473 additions and 4 deletions

View File

@ -75,10 +75,10 @@ class Cluster(TenancyObject):
ClusterType,
blank = True,
default = None,
help_text = 'Parent Cluster for this cluster',
help_text = 'Type of Cluster',
null = True,
on_delete = models.CASCADE,
verbose_name = 'Parent Cluster',
verbose_name = 'Cluster Type',
)
name = models.CharField(
@ -99,7 +99,7 @@ class Cluster(TenancyObject):
verbose_name = 'Configuration',
)
node = models.ManyToManyField(
nodes = models.ManyToManyField(
Device,
blank = True,
default = None,
@ -117,6 +117,10 @@ class Cluster(TenancyObject):
verbose_name = 'Devices',
)
created = AutoCreatedField()
modified = AutoLastModifiedField()
def __str__(self):