mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 18:08:38 -06:00
Add public flag to ObjectType
This commit is contained in:
parent
ae6d2b2edf
commit
b64304d3dd
@ -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(
|
||||||
|
@ -53,7 +53,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