Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
ddd5b21
commit 0610a66
Showing
2 changed files
with
33 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters