From 32823a8bf8c1be1c5168ba284198630e42c58575 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 3 May 2021 11:36:57 +0100 Subject: [PATCH] . --- physics/migrations/0007_exam_author.py | 20 ++++++++++++++++++++ physics/models.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 physics/migrations/0007_exam_author.py diff --git a/physics/migrations/0007_exam_author.py b/physics/migrations/0007_exam_author.py new file mode 100644 index 00000000..308f7dbd --- /dev/null +++ b/physics/migrations/0007_exam_author.py @@ -0,0 +1,20 @@ +# Generated by Django 3.1.3 on 2021-05-03 10:36 + +from django.conf import settings +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('physics', '0006_auto_20210422_1143'), + ] + + operations = [ + migrations.AddField( + model_name='exam', + name='author', + field=models.ManyToManyField(blank=True, help_text='Author of exam', related_name='physics_exam_author', to=settings.AUTH_USER_MODEL), + ), + ] diff --git a/physics/models.py b/physics/models.py index e3ca8df7..f37ac56c 100644 --- a/physics/models.py +++ b/physics/models.py @@ -146,7 +146,7 @@ class Exam(ExamBase): author = models.ManyToManyField(settings.AUTH_USER_MODEL, blank=True, help_text='Author of exam', - related_name="rapid_exam_author") + related_name="physics_exam_author")