Skip to content
0018_validate_stipulations.py 685 B
Newer Older
Andreas Klöckner's avatar
Andreas Klöckner committed
import jsonfield.fields
Andreas Klöckner's avatar
Andreas Klöckner committed
from django.db import migrations, models

Andreas Klöckner's avatar
Andreas Klöckner committed
import course.models


class Migration(migrations.Migration):

    dependencies = [
        ('course', '0017_event_all_day'),
    ]

    operations = [
        migrations.AlterField(
            model_name='flowaccessexception',
            name='stipulations',
Dong Zhuang's avatar
Dong Zhuang committed
            field=jsonfield.fields.JSONField(blank=True, help_text='A dictionary of the same things that can be added to a flow access rule, such as allowed_session_count or credit_percent. If not specified here, values will default to the stipulations in the course content.', null=True, validators=[course.models.validate_stipulations]),