theme selector
This commit is contained in:
parent
124b0e82df
commit
da5346d0a9
9 changed files with 99 additions and 20 deletions
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 4.2.7 on 2024-01-06 19:29
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('control', '0012_userpermissions_grant_unlimited_access'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='userpermissions',
|
||||
name='nonpublic_themes',
|
||||
field=models.BooleanField(default=False, verbose_name='show non-public themes in theme selector'),
|
||||
),
|
||||
]
|
|
@ -38,6 +38,8 @@ class UserPermissions(models.Model):
|
|||
|
||||
mesh_control = models.BooleanField(default=False, verbose_name=_('can access mesh control'))
|
||||
|
||||
nonpublic_themes = models.BooleanField(default=False, verbose_name=_('show non-public themes in theme selector'))
|
||||
|
||||
class Meta:
|
||||
verbose_name = _('User Permissions')
|
||||
verbose_name_plural = _('User Permissions')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue