migration

This commit is contained in:
Hubert Jankowski 2022-01-22 19:55:40 +01:00
parent 773dd783ae
commit a469c6708f
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# Generated by Django 3.2.9 on 2022-01-22 18:34
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('trials', '0007_solvedtest'),
]
operations = [
migrations.AlterField(
model_name='solvedtest',
name='test',
field=models.ManyToManyField(null=True, related_name='answers', to='trials.Test'),
),
migrations.AlterField(
model_name='solvedtest',
name='user',
field=models.ManyToManyField(null=True, related_name='answers', to=settings.AUTH_USER_MODEL),
),
]

View File

@ -0,0 +1,34 @@
# Generated by Django 3.2.9 on 2022-01-22 18:42
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),
('trials', '0008_auto_20220122_1934'),
]
operations = [
migrations.RemoveField(
model_name='solvedtest',
name='test',
),
migrations.AddField(
model_name='solvedtest',
name='test',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='answers', to='trials.test'),
),
migrations.RemoveField(
model_name='solvedtest',
name='user',
),
migrations.AddField(
model_name='solvedtest',
name='user',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='answers', to=settings.AUTH_USER_MODEL),
),
]