mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-26 10:28:37 -06:00
Add public flag to ObjectType
This commit is contained in:
parent
30dfe5a62e
commit
1871f6f3d7
@ -48,6 +48,12 @@ class Migration(migrations.Migration):
|
|||||||
related_name='object_type'
|
related_name='object_type'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
'public',
|
||||||
|
models.BooleanField(
|
||||||
|
default=False
|
||||||
|
)
|
||||||
|
),
|
||||||
(
|
(
|
||||||
'features',
|
'features',
|
||||||
django.contrib.postgres.fields.ArrayField(
|
django.contrib.postgres.fields.ArrayField(
|
||||||
|
@ -55,7 +55,10 @@ class ObjectType(ContentType):
|
|||||||
parent_link=True,
|
parent_link=True,
|
||||||
primary_key=True,
|
primary_key=True,
|
||||||
serialize=False,
|
serialize=False,
|
||||||
related_name='object_type'
|
related_name='object_type',
|
||||||
|
)
|
||||||
|
public = models.BooleanField(
|
||||||
|
default=False,
|
||||||
)
|
)
|
||||||
features = ArrayField(
|
features = ArrayField(
|
||||||
base_field=models.CharField(max_length=50),
|
base_field=models.CharField(max_length=50),
|
||||||
|
Loading…
Reference in New Issue
Block a user