1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Rename attrs to constraints

This commit is contained in:
Jeremy Stretch
2020-06-03 09:43:46 -04:00
parent ddcd172af1
commit d157818d7e
6 changed files with 52 additions and 54 deletions

View File

@@ -252,10 +252,10 @@ class ObjectPermission(models.Model):
},
related_name='object_permissions'
)
attrs = JSONField(
constraints = JSONField(
blank=True,
null=True,
verbose_name='Attributes'
help_text="Queryset filter matching the applicable objects of the selected type(s)"
)
actions = ArrayField(
base_field=models.CharField(max_length=30),