django-helpdesk/helpdesk/views
Jonathan Barratt 0610a6645d Fix QueueMembership bug revealed by django.test's DiscoverRunner
If HELPDESK_ENABLE_PER_QUEUE_STAFF_MEMBERSHIP was True but a user had
no QueueMembership entries, then restricting queue access generated
RelatedObjectDoesNotExist exceptions.

 - Ask for forgiveness whenever we try to limit a queryset by the
queuemembership related object set.

 - Since tests can now be run with the project's settings active,
rather than only with quicktest.py's settings, restore the initial
HELPDESK_ENABLE_PER_QUEUE_MEMBERSHIP value after having tested the
related functionality.
2015-11-16 18:45:27 +07: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 From gettatr to get, because dict doesn't contatin attributes. 2015-11-12 17:31:14 +03:00
feeds.py Improved support for custom user models 2014-10-22 16:18:04 +11:00
kb.py small fixes and translation 2011-09-01 13:01:03 +02:00
public.py Merge 2015-04-28 09:13:54 +10:00
staff.py Fix QueueMembership bug revealed by django.test's DiscoverRunner 2015-11-16 18:45:27 +07:00