0003_projectcounter.py 673 B

12345678910111213141516171819202122
  1. # Generated by Django 3.0.8 on 2020-07-14 13:33
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('projects', '0002_auto_20200429_2329'),
  7. ]
  8. operations = [
  9. migrations.CreateModel(
  10. name='ProjectCounter',
  11. fields=[
  12. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  13. ('value', models.PositiveIntegerField()),
  14. ('project', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='projects.Project')),
  15. ],
  16. ),
  17. ]