2019-09-09 15:04:30 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2019-09-10 17:11:14 +00:00
|
|
|
# Generated by Django 1.11.23 on 2019-09-10 17:09
|
2019-09-09 15:04:30 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import re2o.mixins
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2019-11-04 16:55:03 +00:00
|
|
|
dependencies = [("preferences", "0061_optionaluser_allow_archived_connexion")]
|
2019-09-09 15:04:30 +00:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2019-11-04 16:55:03 +00:00
|
|
|
name="RadiusAttribute",
|
2019-09-09 15:04:30 +00:00
|
|
|
fields=[
|
2019-11-04 16:55:03 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"attribute",
|
|
|
|
models.CharField(
|
|
|
|
help_text="See http://freeradius.org/rfc/attributes.html",
|
|
|
|
max_length=255,
|
|
|
|
verbose_name="Attribute",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("value", models.CharField(max_length=255, verbose_name="Value")),
|
|
|
|
(
|
|
|
|
"comment",
|
|
|
|
models.TextField(
|
|
|
|
blank=True,
|
|
|
|
default="",
|
|
|
|
help_text="Use this field to document this attribute.",
|
|
|
|
verbose_name="Comment",
|
|
|
|
),
|
|
|
|
),
|
2019-09-09 15:04:30 +00:00
|
|
|
],
|
|
|
|
options={
|
2019-11-04 16:55:03 +00:00
|
|
|
"verbose_name": "RADIUS attribute",
|
|
|
|
"verbose_name_plural": "RADIUS attributes",
|
2019-09-09 15:04:30 +00:00
|
|
|
},
|
|
|
|
bases=(re2o.mixins.RevMixin, re2o.mixins.AclMixin, models.Model),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
2019-11-04 16:55:03 +00:00
|
|
|
model_name="radiusoption",
|
|
|
|
name="banned_attributes",
|
|
|
|
field=models.ManyToManyField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Answer attributes for banned users.",
|
|
|
|
related_name="banned_attribute",
|
|
|
|
to="preferences.RadiusAttribute",
|
|
|
|
verbose_name="Banned attributes.",
|
|
|
|
),
|
2019-09-09 15:04:30 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2019-11-04 16:55:03 +00:00
|
|
|
model_name="radiusoption",
|
|
|
|
name="non_member_attributes",
|
|
|
|
field=models.ManyToManyField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Answer attributes for non members.",
|
|
|
|
related_name="non_member_attribute",
|
|
|
|
to="preferences.RadiusAttribute",
|
|
|
|
verbose_name="Non member attributes.",
|
|
|
|
),
|
2019-09-09 15:04:30 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2019-11-04 16:55:03 +00:00
|
|
|
model_name="radiusoption",
|
|
|
|
name="ok_attributes",
|
|
|
|
field=models.ManyToManyField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Answer attributes for accepted users.",
|
|
|
|
related_name="ok_attribute",
|
|
|
|
to="preferences.RadiusAttribute",
|
|
|
|
verbose_name="Accepted users attributes.",
|
|
|
|
),
|
2019-09-09 15:04:30 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2019-11-04 16:55:03 +00:00
|
|
|
model_name="radiusoption",
|
|
|
|
name="unknown_machine_attributes",
|
|
|
|
field=models.ManyToManyField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Answer attributes for unknown machines.",
|
|
|
|
related_name="unknown_machine_attribute",
|
|
|
|
to="preferences.RadiusAttribute",
|
|
|
|
verbose_name="Unknown machines attributes.",
|
|
|
|
),
|
2019-09-09 15:04:30 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2019-11-04 16:55:03 +00:00
|
|
|
model_name="radiusoption",
|
|
|
|
name="unknown_port_attributes",
|
|
|
|
field=models.ManyToManyField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Answer attributes for unknown ports.",
|
|
|
|
related_name="unknown_port_attribute",
|
|
|
|
to="preferences.RadiusAttribute",
|
|
|
|
verbose_name="Unknown ports attributes.",
|
|
|
|
),
|
2019-09-09 15:04:30 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2019-11-04 16:55:03 +00:00
|
|
|
model_name="radiusoption",
|
|
|
|
name="unknown_room_attributes",
|
|
|
|
field=models.ManyToManyField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Answer attributes for unknown rooms.",
|
|
|
|
related_name="unknown_room_attribute",
|
|
|
|
to="preferences.RadiusAttribute",
|
|
|
|
verbose_name="Unknown rooms attributes.",
|
|
|
|
),
|
2019-09-09 15:04:30 +00:00
|
|
|
),
|
|
|
|
]
|