#29618: using query parameters to filter by boolean causes assertion error due
to
lowercase true/false
-----------------------------------------+------------------------
Reporter: Levi Schubert | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 2.0
Severity: Normal | Keywords: filter
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
When attempting to filter by a BooleanField using query parameters in the
url, django raises a validation error of "'false' value must be either
True or False." due to the capitalization of booleans in python. A
workaround has been to .title() the parameter request. I'm unsure if this
is considered a bug or if this is normal activity that just requires the
extra configuration to handle the filter.
--
Ticket URL: <https://code.djangoproject.com/ticket/29618>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/056.03d7e81272fb566258174619dd38926f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.