Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add input_values to Question model #61

Open
cortadocodes opened this issue Jan 18, 2024 · 0 comments
Open

Add input_values to Question model #61

cortadocodes opened this issue Jan 18, 2024 · 0 comments

Comments

@cortadocodes
Copy link
Member

Feature request

Use Case

  • Allow input values to be shown for a question model without having to inherit from the deprecated QuestionValuesDatabaseStorageMixin
  • Reduce what needs to be added to subclasses of Question so more functionality works out of the box and so the codebase is less complex

Current state

The QuestionValuesDatabaseStorageMixin mixin provides input_values and output_values fields when mixed with Question If we just use the Question model, these fields aren't available and we get an error.

Proposed Solution

Get the input values from an event (possibly by artificially creating one in the ask method but preferably by providing better event support) so input_values can be accessed in the same way as the other question properties in QuestionAdmin (e.g. delivery_acknowledgement)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant