should have been supporter not contributor ...
parent
4ddaf1f3cb
commit
392f746b2f
|
@ -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 %}
|
||||
|
|
@ -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"),
|
||||
)
|
||||
|
|
|
@ -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)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue