feature/post-test-answers #24

Merged
s470631 merged 4 commits from feature/post-test-answers into master 2022-01-22 20:39:48 +01:00
2 changed files with 59 additions and 0 deletions
Showing only changes of commit a469c6708f - Show all commits

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),
),
]