should have been supporter not contributor ...

pull/1/head
Ed Summers 2011-09-12 18:20:36 +00:00
parent 4ddaf1f3cb
commit 392f746b2f
3 changed files with 7 additions and 7 deletions

View File

@ -2,9 +2,9 @@
{% block content %}
<h1>Wishlist for {{ contributor.username }}</h1>
<h1>Wishlist for {{ supporter.username }}</h1>
{% for work in contributor.wishlist.works.all %}
{% for work in supporter.wishlist.works.all %}
{% include "book_panel.html" %}
{% endfor %}

View File

@ -3,5 +3,5 @@ from django.conf.urls.defaults import *
urlpatterns = patterns(
"regluit.frontend.views",
url(r"^$", "home", name="home"),
url(r"^contributor/(?P<contributor_username>.+)/$", "contributor", name="contributor"),
url(r"^supporter/(?P<supporter_username>.+)/$", "supporter", name="supporter"),
)

View File

@ -10,9 +10,9 @@ def home(request):
context_instance=RequestContext(request)
)
def contributor(request, contributor_username):
contributor = get_object_or_404(User, username=contributor_username)
return render_to_response('contributor.html',
{"contributor": contributor},
def supporter(request, supporter_username):
supporter = get_object_or_404(User, username=supporter_username)
return render_to_response('supporter.html',
{"supporter": supporter},
context_instance=RequestContext(request)
)