patt/migrations/0004_auto_20191004_1125.py

46 lines
1.5 KiB
Python
Raw Normal View History

2020-01-26 21:04:45 +01:00
# 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'),
),
]