good day! I make a search form html:
<form action='/notebook/search/' method='get'> <input type='text' name='q'> <input type='submit' value='Найти'> </form>
processing request: vews.py:
def note_search(request): """ поиск записи """ if 'q' in request.GET: q = request.GET['q'] notebook = request.user.notebooks.filter(Q(surname=q)) message = 'Вы ищете запись %r' % (request.GET['q']) else: message = 'Строка не должна быть пустой' notebook = request.user.notebooks.all() return render_to_response('notebook.html', {'notebook': notebook, 'message': message}, RequestContext(request))
the problem is that later in the {{message}} template is displayed as
Вы ищете запись u'\u041c\u0430\u043a\u0441'
but I would like to see
Вы ищете запись Макс
because in the search bar I typed the word "Max".
How do I make a readable message output?
thank