mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-21 23:43:11 +01:00
quickfix for bug https://github.com/rossp/django-helpdesk/issues#issue/33
we need to figure out why in this particular case, 'request' is a string.
This commit is contained in:
parent
b40d4511a3
commit
8ed7debbdf
@ -12,8 +12,13 @@ from helpdesk.models import SavedSearch
|
||||
|
||||
|
||||
def saved_queries(request):
|
||||
user_saved_queries = SavedSearch.objects.filter(Q(user=request.user) | Q(shared__exact=True))
|
||||
return user_saved_queries
|
||||
try:
|
||||
user_saved_queries = SavedSearch.objects.filter(Q(user=request.user) | Q(shared__exact=True))
|
||||
return user_saved_queries
|
||||
except Exception, e:
|
||||
print "'saved_queries' template tag (django-helpdesk) crashed with following error:"
|
||||
print e
|
||||
return ''
|
||||
|
||||
register = Library()
|
||||
register.filter('saved_queries', saved_queries)
|
||||
|
Loading…
Reference in New Issue
Block a user