X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/9694fb0873b055992c5d2d00ff12f946b2f26c08..5854d9a155795c14b005afee1b0bb93d8b659462:/forum/views/readers.py diff --git a/forum/views/readers.py b/forum/views/readers.py index 8dad780..7404b92 100644 --- a/forum/views/readers.py +++ b/forum/views/readers.py @@ -119,12 +119,18 @@ def tag(request, tag): } # The context returned by the question_list function, contains info about the questions - question_context = dict(question_list(request, + question_context = question_list(request, questions, mark_safe(_(u'questions tagged %(tag)s') % {'tag': tag}), None, mark_safe(_(u'Questions Tagged With %(tag)s') % {'tag': tag}), - False)) + False) + + # If the return data type is not a dict just return it + if not isinstance(question_context, dict): + return question_context + + question_context = dict(question_context) # Create the combined context context = dict(question_context.items() + tag_context.items())