mirror of https://github.com/openspug/spug
U 主机分组名称长度增加到50个字符
parent
b342822fa6
commit
bca9557cb9
|
@ -84,7 +84,7 @@ class HostExtend(models.Model, ModelMixin):
|
||||||
|
|
||||||
|
|
||||||
class Group(models.Model, ModelMixin):
|
class Group(models.Model, ModelMixin):
|
||||||
name = models.CharField(max_length=20)
|
name = models.CharField(max_length=50)
|
||||||
parent_id = models.IntegerField(default=0)
|
parent_id = models.IntegerField(default=0)
|
||||||
sort_id = models.IntegerField(default=0)
|
sort_id = models.IntegerField(default=0)
|
||||||
hosts = models.ManyToManyField(Host, related_name='groups')
|
hosts = models.ManyToManyField(Host, related_name='groups')
|
||||||
|
|
Loading…
Reference in New Issue