mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-03-15 13:36:18 +00:00
update policy_type choices
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.2.12 on 2026-03-13 20:44
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('app_gateway', '0005_alter_applicationroute_order'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='accesspolicy',
|
||||
name='policy_type',
|
||||
field=models.CharField(choices=[('public', 'Public'), ('protected', 'Protected'), ('deny', 'Deny')], max_length=32),
|
||||
),
|
||||
]
|
||||
@@ -41,15 +41,8 @@ class ApplicationHost(models.Model):
|
||||
|
||||
|
||||
class AccessPolicy(models.Model):
|
||||
POLICY_TYPE_CHOICES = [
|
||||
('bypass', _('Bypass (public)')),
|
||||
('one_factor', _('One Factor')),
|
||||
('two_factor', _('Two Factor')),
|
||||
('deny', _('Deny')),
|
||||
]
|
||||
|
||||
name = models.SlugField(max_length=64, unique=True)
|
||||
policy_type = models.CharField(max_length=32, choices=POLICY_TYPE_CHOICES)
|
||||
policy_type = models.CharField(max_length=32, choices=(('public', _('Public')), ('protected', _('Protected')), ('deny', _('Deny'))))
|
||||
groups = models.ManyToManyField(GatekeeperGroup, blank=True, related_name='policies')
|
||||
methods = models.ManyToManyField(AuthMethod, blank=True, related_name='policies')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user