Django Library PaTT
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

0009_auto_20191102_1925.py 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Generated by Django 2.2.5 on 2019-11-02 19:25
  2. from django.conf import settings
  3. from django.db import migrations, models
  4. import django.db.models.deletion
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  8. ('patt', '0008_remove_viewsetting_displaytype'),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name='PattProfile',
  13. fields=[
  14. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  15. ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
  16. ],
  17. ),
  18. migrations.AddField(
  19. model_name='project',
  20. name='days_highlight',
  21. field=models.IntegerField(choices=[(0, 'Off'), (1, 1), (2, 2), (3, 3), (5, 5), (7, 7), (10, 10), (14, 14)], default=7),
  22. ),
  23. migrations.AddField(
  24. model_name='project',
  25. name='days_warn',
  26. field=models.IntegerField(choices=[(0, 'Off'), (1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (7, 7), (9, 9)], default=3),
  27. ),
  28. migrations.AlterField(
  29. model_name='viewsetting',
  30. name='profile',
  31. field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='patt.PattProfile'),
  32. ),
  33. migrations.DeleteModel(
  34. name='UserProfile',
  35. ),
  36. ]