Skip to content

Commit

Permalink
Update allowed phrase response types.
Browse files Browse the repository at this point in the history
- Add `TIME`, and sort list alphabetically.
  • Loading branch information
JustinNusca committed Oct 23, 2024
1 parent e7d0f38 commit 3a954c7
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/apps/activities/domain/custom_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,17 +257,18 @@ def validate_phrasal_templates(values: dict):
raise IncorrectPhrasalTemplateItemError()

if referenced_item.response_type not in [
ResponseType.TEXT,
ResponseType.SINGLESELECT,
ResponseType.DATE,
ResponseType.MULTISELECT,
ResponseType.SLIDER,
ResponseType.MULTISELECTROWS,
ResponseType.NUMBERSELECT,
ResponseType.TIMERANGE,
ResponseType.DATE,
ResponseType.SLIDERROWS,
ResponseType.SINGLESELECTROWS,
ResponseType.PARAGRAPHTEXT,
ResponseType.MULTISELECTROWS,
ResponseType.SINGLESELECT,
ResponseType.SINGLESELECTROWS,
ResponseType.SLIDER,
ResponseType.SLIDERROWS,
ResponseType.TEXT,
ResponseType.TIME,
ResponseType.TIMERANGE,
]:
raise IncorrectPhrasalTemplateItemTypeError()

Expand Down

0 comments on commit 3a954c7

Please sign in to comment.