patt/migrations/0013_auto_20210117_1332.py

38 rivejä
1.4 KiB
Python

# Generated by Django 3.1.5 on 2021-01-17 13:32
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('patt', '0012_auto_20200114_1035'),
]
operations = [
migrations.RemoveField(
model_name='project',
name='days_late',
),
migrations.RemoveField(
model_name='project',
name='days_soon',
),
migrations.RemoveField(
model_name='project',
name='days_very_soon',
),
migrations.CreateModel(
name='PattUserProfile',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('threshold_very_soon', models.IntegerField(choices=[(1, '1 day'), (2, '2 days'), (3, '3 days'), (4, '4 days'), (5, '5 days'), (7, '7 days'), (9, '9 days'), (12, '12 days')], default=4)),
('threshold_soon', models.IntegerField(choices=[(1, '1 day'), (2, '2 days'), (3, '3 days'), (5, '5 days'), (7, '7 days'), (10, '10 days'), (14, '14 days'), (21, ' days')], default=10)),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
]