.
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 3.1.3 on 2021-05-02 18:14
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('longs', '0034_exam_author'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='longseries',
|
||||||
|
name='open_access',
|
||||||
|
field=models.BooleanField(default=True, help_text='If a question should be freely available to browse'),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -329,6 +329,10 @@ class LongSeries(models.Model):
|
|||||||
related_name="long_series",
|
related_name="long_series",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
open_access = models.BooleanField(
|
||||||
|
help_text="If a question should be freely available to browse", default=True
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
if self.long:
|
if self.long:
|
||||||
|
|||||||
Reference in New Issue
Block a user