mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 02:10:49 +01:00
0ac7183875
My browser sends 'on' when a checkbox is ticked, django ORM only recognises '1', 'true' or 't' as valid 'True' responses. This throws an error ValidationError at /helpdesk/save_query/ [u"'on' value must be either True or False."] This could be fixed with " value='1'" in the template, but testing that is harder My fix is to add a check in the view. 2 more lines, but easier to unittest. Core devs need to make a call as to which solution is best. D |
||
---|---|---|
.. | ||
__init__.py | ||
helpers.py | ||
test_navigation.py | ||
test_per_queue_staff_permission.py | ||
test_public_actions.py | ||
test_savequery.py | ||
test_ticket_lookup.py | ||
test_ticket_submission.py |