46 rindas
1.5 KiB
Python
46 rindas
1.5 KiB
Python
# Generated by Django 2.2.5 on 2019-10-04 11:25
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('patt', '0003_remove_tasklistsetting_sorttype'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='ViewSetting',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('view', models.CharField(max_length=50)),
|
|
('userfilter', models.CharField(default='all', max_length=50)),
|
|
('statefilter', models.CharField(default='1,0', max_length=50)),
|
|
('displaytype', models.CharField(default='short', max_length=50)),
|
|
],
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='userprofile',
|
|
name='current_tasklistsetting',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='userprofile',
|
|
name='my_tasklistsettings',
|
|
),
|
|
migrations.AddField(
|
|
model_name='userprofile',
|
|
name='viewsettings',
|
|
field=models.TextField(default='{}'),
|
|
),
|
|
migrations.DeleteModel(
|
|
name='TaskListSetting',
|
|
),
|
|
migrations.AddField(
|
|
model_name='viewsetting',
|
|
name='profile',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='patt.UserProfile'),
|
|
),
|
|
]
|