.
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
# Generated by Django 3.1.3 on 2021-04-29 19:04
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('anatomy', '0037_auto_20210422_1143'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name='anatomyquestion',
|
||||||
|
options={'permissions': ()},
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
# Generated by Django 3.1.3 on 2021-04-29 19:04
|
||||||
|
|
||||||
|
from django.conf import settings
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||||
|
('longs', '0033_auto_20210422_1143'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='exam',
|
||||||
|
name='author',
|
||||||
|
field=models.ManyToManyField(blank=True, help_text='Author of exam', related_name='long_exam_author', to=settings.AUTH_USER_MODEL),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -522,6 +522,11 @@ class Exam(ExamBase):
|
|||||||
default=4500,
|
default=4500,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
author = models.ManyToManyField(settings.AUTH_USER_MODEL,
|
||||||
|
blank=True,
|
||||||
|
help_text='Author of exam',
|
||||||
|
related_name="long_exam_author")
|
||||||
|
|
||||||
def get_exam_question_json(self, question_id):
|
def get_exam_question_json(self, question_id):
|
||||||
q = get_object_or_404(Long, pk=question_id)
|
q = get_object_or_404(Long, pk=question_id)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user