add model migrations
This commit is contained in:
parent
c58e442723
commit
ae10bd073f
|
@ -0,0 +1,22 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.18 on 2019-05-03 08:17
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('authentic2', '0024_ldapuser'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='AuthorizationRule',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('scopes', models.CharField(choices=[(1, b'Read'), (2, b'Write')], max_length=63, verbose_name='scopes')),
|
||||
],
|
||||
),
|
||||
]
|
|
@ -0,0 +1,25 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.18 on 2019-05-03 08:46
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('authentic2', '0025_authorizationrule'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='authorizationrule',
|
||||
name='service_categories',
|
||||
field=models.CharField(choices=[(1, 'URM Services'), (2, 'Sports services'), (3, 'Cultural service')], default=1, help_text='Category of services for which the authorization rule applies', max_length=63, verbose_name='Service category'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='authorizationrule',
|
||||
name='validity',
|
||||
field=models.DateTimeField(auto_now=True),
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue