[snowy: 17/26] Fix error when viewing public notes anonymously (bug#614681)
- From: Sanford Armstrong <sharm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [snowy: 17/26] Fix error when viewing public notes anonymously (bug#614681)
- Date: Tue, 22 Jun 2010 20:58:25 +0000 (UTC)
commit d77d800c92ec3b6b3d938690b53be75daa4fcbbb
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date: Sun Apr 4 09:06:27 2010 -0700
Fix error when viewing public notes anonymously (bug#614681)
s/request.user/author , since request.user could be None.
notes/templates/notes/base.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/notes/templates/notes/base.html b/notes/templates/notes/base.html
index 4f4cae4..d91376b 100644
--- a/notes/templates/notes/base.html
+++ b/notes/templates/notes/base.html
@@ -3,7 +3,7 @@
{% load i18n %}
{% block sidebar %}
-<form method="GET" name="searchForm" action="{% url note_search request.user.username %}">
+<form method="GET" name="searchForm" action="{% url note_search author.username %}">
<input type="text" id="search" class="dim" name="query" accesskey="s" value="{% trans "Search your notes" %}">
</form>
{% endblock %}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]