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:
@@ -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',
|
||||
},
|
||||
),
|
||||
|
Reference in New Issue
Block a user