Skip to content

cannot loaddata with choices #179

Open
@johanneswilm

Description

@johanneswilm

When I try to dumpdata and subsequently loaddata, I get a large amount of errors thrown. This seems to be due to choices being converted to their slug equivalent when saving to the database while the original choices values are checked for.

  File ".../python-3.11.2/lib/python3.11/site-packages/survey/models/answer.py", line 87, in check_answer_for_select
    raise ValidationError(msg)
django.core.exceptions.ValidationError: ["Impossible answer 'spiser-ikke-fisk' should be in ['Spiser ikke fisk', 'Spiser ofte fisk', 'Spiser fisk hver dag', 'Spiser overvejende fisk', 'Spiser kun fisk'] "]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions