2020-05-28 19:45:54 +00:00
|
|
|
# Generated by Django 3.0.6 on 2020-05-28 16:47
|
|
|
|
|
|
|
|
import django.db.models.deletion
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
|
|
import passbook.lib.models
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
("passbook_policies", "0001_initial"),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.AlterModelOptions(
|
|
|
|
name="policy",
|
|
|
|
options={
|
|
|
|
"base_manager_name": "objects",
|
|
|
|
"verbose_name": "Policy",
|
|
|
|
"verbose_name_plural": "Policies",
|
|
|
|
},
|
|
|
|
),
|
2020-09-30 17:34:22 +00:00
|
|
|
migrations.RemoveField(
|
|
|
|
model_name="policy",
|
|
|
|
name="negate",
|
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
|
|
|
model_name="policy",
|
|
|
|
name="order",
|
|
|
|
),
|
|
|
|
migrations.RemoveField(
|
|
|
|
model_name="policy",
|
|
|
|
name="timeout",
|
|
|
|
),
|
2020-05-28 19:45:54 +00:00
|
|
|
migrations.AddField(
|
|
|
|
model_name="policybinding",
|
|
|
|
name="negate",
|
|
|
|
field=models.BooleanField(
|
|
|
|
default=False,
|
|
|
|
help_text="Negates the outcome of the policy. Messages are unaffected.",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name="policybinding",
|
|
|
|
name="timeout",
|
|
|
|
field=models.IntegerField(
|
|
|
|
default=30,
|
|
|
|
help_text="Timeout after which Policy execution is terminated.",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
migrations.AlterField(
|
2020-09-30 17:34:22 +00:00
|
|
|
model_name="policybinding",
|
|
|
|
name="order",
|
|
|
|
field=models.IntegerField(),
|
2020-05-28 19:45:54 +00:00
|
|
|
),
|
|
|
|
migrations.AlterField(
|
|
|
|
model_name="policybinding",
|
|
|
|
name="policy",
|
|
|
|
field=passbook.lib.models.InheritanceForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
related_name="+",
|
|
|
|
to="passbook_policies.Policy",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
2020-09-30 17:34:22 +00:00
|
|
|
name="policybinding",
|
|
|
|
unique_together={("policy", "target", "order")},
|
2020-05-28 19:45:54 +00:00
|
|
|
),
|
|
|
|
]
|