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

Closes #4942: Make ObjectPermission's 'name' field required

This commit is contained in:
Jeremy Stretch
2020-08-03 16:10:51 -04:00
parent ccb2bf4344
commit ce2dada9fd
5 changed files with 18 additions and 15 deletions

View File

@@ -18,7 +18,7 @@ class Migration(migrations.Migration):
name='ObjectPermission',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False)),
('name', models.CharField(blank=True, max_length=100)),
('name', models.CharField(max_length=100)),
('enabled', models.BooleanField(default=True)),
('constraints', django.contrib.postgres.fields.jsonb.JSONField(blank=True, null=True)),
('actions', django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=30), size=None)),
@@ -27,6 +27,7 @@ class Migration(migrations.Migration):
('users', models.ManyToManyField(blank=True, related_name='object_permissions', to=settings.AUTH_USER_MODEL)),
],
options={
'ordering': ['name'],
'verbose_name': 'permission',
},
),