Commit 3a98b9698c9ea155ae8c36c00633fb74fd85d4cc
1 parent
85472910
Exists in
master
and in
5 other branches
Included what was searched in context dict [Issue:#432]
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
users/views.py
... | ... | @@ -261,13 +261,14 @@ class SearchView(LoginRequiredMixin, generic.ListView): |
261 | 261 | forum_list = Forum.objects.filter(Q(name__icontains=search)and Q(students__name = self.request.user.name)).order_by('name') |
262 | 262 | qtd = len(link_list) + len(file_list) + len(poll_list) + len(exam_list) + len(forum_list) |
263 | 263 | |
264 | - | |
264 | + translated = _('You searched for... ') | |
265 | 265 | context['link_list'] = link_list |
266 | 266 | context['file_list'] = file_list |
267 | 267 | context['poll_list'] = poll_list |
268 | 268 | context['exam_list'] = exam_list |
269 | 269 | context['forum_list'] = forum_list |
270 | 270 | context['qtd'] = qtd |
271 | + context['search'] = translated + search | |
271 | 272 | |
272 | 273 | return context |
273 | 274 | ... | ... |