Add a new condition value field for multiple-choice selection.

Review Request #12330 — Created June 2, 2022 and submitted — Latest diff uploaded

Information

Djblets
release-3.x

Reviewers

We have existing code that makes it easy to add multiple-choice
selections for models based on a queryset, but we didn't have anything
for multiple-choice selections based on just a set of choices. This
change adds a value field to do that.

Used this in Review Board. Saw that existing values were loaded properly
and new values were saved correctly.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Add a new condition value field for multiple-choice selection.
We have existing code that makes it easy to add multiple-choice selections for models based on a queryset, but we didn't have anything for multiple-choice selections based on just a set of choices. This change adds a value field to do that. Testing Done: Used this in Review Board. Saw that existing values were loaded properly and new values were saved correctly.
466cc30bd0f5493cca6e76a99ba5fdfab8c5e198 David Trowbridge
djblets/conditions/values.py
Loading...