django-helpdesk/helpdesk/views
Daryl 0ac7183875 Add test for saving a query, fix shared checkbox issue
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
2016-06-30 11:36:21 +12:00
..
__init__.py Moved all project files under a "helpdesk" directory. Should make it easier to use setup.py / pypi / whatever in the future. 2011-01-25 23:02:00 +00:00
api.py Changed render_to_response() to render() - this should work for django1.9.4 plus django1.10 2016-06-21 17:18:06 +12:00
feeds.py Improved support for custom user models 2014-10-22 16:18:04 +11:00
kb.py Changed render_to_response() to render() - this should work for django1.9.4 plus django1.10 2016-06-21 17:18:06 +12:00
public.py Fix Issue #404: Refactor converting query string into queue:id 2016-06-26 12:45:55 +12:00
staff.py Add test for saving a query, fix shared checkbox issue 2016-06-30 11:36:21 +12:00