Skip to content

Commit

Permalink
Merge pull request #351 from praekeltfoundation/fix-migrations
Browse files Browse the repository at this point in the history
Fix migrations
  • Loading branch information
HawkiesZA committed Jul 31, 2024
2 parents 385c576 + cb155d2 commit 8043eea
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 37 deletions.
34 changes: 0 additions & 34 deletions home/migrations/0079_assessment_skip_high_result_page_and_more.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,17 +1,38 @@
# Generated by Django 4.2.11 on 2024-07-31 11:44
# Generated by Django 4.2.11 on 2024-07-31 14:30

from django.db import migrations
from django.db import migrations, models
import django.db.models.deletion
import wagtail.blocks
import wagtail.fields


class Migration(migrations.Migration):

dependencies = [
("home", "0079_assessment_skip_high_result_page_and_more"),
("home", "0079_alter_whatsapptemplate_message"),
]

operations = [
migrations.AddField(
model_name="assessment",
name="skip_high_result_page",
field=models.ForeignKey(
blank=True,
help_text="The page to show a user if they skip a question",
null=True,
on_delete=django.db.models.deletion.CASCADE,
related_name="assessment_high_skip",
to="home.contentpage",
),
),
migrations.AddField(
model_name="assessment",
name="skip_threshold",
field=models.FloatField(
default=0,
help_text="If a user skips equal to or greater than this many questions they will be presented with the skip page",
),
),
migrations.AlterField(
model_name="assessment",
name="questions",
Expand Down

0 comments on commit 8043eea

Please sign in to comment.