Generateurv2/backend/api/exercices/migrations/0002_initial.py
2022-07-29 11:53:49 +02:00

38 lines
1.1 KiB
Python

# Generated by Django 4.0 on 2022-07-29 09:08
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('exercices', '0001_initial'),
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='tag',
name='user',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='users.customuser'),
),
migrations.AddField(
model_name='exercice',
name='author',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='users.customuser'),
),
migrations.AddField(
model_name='exercice',
name='origin',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='exercices.exercice'),
),
migrations.AddField(
model_name='exercice',
name='tags',
field=models.ManyToManyField(to='exercices.Tag'),
),
]