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

Inherit the FlagStateForm from Django Flags #54

Merged
merged 1 commit into from
Aug 19, 2020
Merged

Conversation

willbarton
Copy link
Member

This change will use the FlagStateForm from Django-Flags as the superclass for the Wagtail-Flags' FlagStateForm.

This enables Wagtail-Flags to use the Django-Flags condition validators introduced in Django-Flags 5.0.

In Wagtail-Flags, this will look like this:

image

When a value is entered that a condition's validator does not accept.

This change will use the FlagStateForm from Django-Flags as the superclass for the Wagtail-Flags FlagStateForm. This way, Wagtail-Flags will use the Django-Flags condition validators introduced in Django-Flags 5.0.
@willbarton willbarton requested a review from a team August 18, 2020 18:11
@willbarton willbarton merged commit 8d6e759 into master Aug 19, 2020
@willbarton willbarton deleted the flag-validators branch August 19, 2020 14:48
willbarton added a commit that referenced this pull request Aug 19, 2020
These tests are failing validation after #54. I'm not sure why they didn't fail in that PR itself.
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

Successfully merging this pull request may close these issues.

None yet

2 participants