mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-12-27 11:02:22 +00:00
46 lines
1.5 KiB
Python
46 lines
1.5 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
# Generated by Django 1.11.2 on 2017-06-29 19:56
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('users', '0002_auto_20170629_1438'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='ListRight',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('listright', models.CharField(max_length=255, unique=True)),
|
||
|
('details', models.CharField(blank=True, help_text='Description', max_length=255)),
|
||
|
],
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='Right',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('right', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='users.ListRight')),
|
||
|
],
|
||
|
),
|
||
|
migrations.RemoveField(
|
||
|
model_name='user',
|
||
|
name='right',
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='right',
|
||
|
name='user',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
|
||
|
),
|
||
|
migrations.AlterUniqueTogether(
|
||
|
name='right',
|
||
|
unique_together=set([('user', 'right')]),
|
||
|
),
|
||
|
]
|