switch exam questions to a sorted m2m
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# Generated by Django 3.1.3 on 2020-11-29 09:55
|
||||
|
||||
from django.db import migrations, models
|
||||
import sortedm2m.fields
|
||||
from sortedm2m.operations import AlterSortedManyToManyField
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('anatomy', '0005_auto_20201126_1730'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
#migrations.AddField(
|
||||
# model_name='anatomyquestion',
|
||||
# name='open_access',
|
||||
# field=models.BooleanField(default=True, help_text='If an question should be freely available to browse'),
|
||||
#),
|
||||
AlterSortedManyToManyField(
|
||||
model_name='exam',
|
||||
name='exam_questions',
|
||||
field=sortedm2m.fields.SortedManyToManyField(blank='true', help_text=None, related_name='exams', to='anatomy.AnatomyQuestion'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user