need to distinguish between the user being viewed (subscriber for now) and the logged in user
parent
accffc3b8e
commit
d8f1d64085
|
@ -2,9 +2,9 @@
|
|||
|
||||
{% block content %}
|
||||
|
||||
<h1>Wishlist for {{ user.username }}</h1>
|
||||
<h1>Wishlist for {{ subscriber.username }}</h1>
|
||||
|
||||
{% for work in user.wishlist.works.all %}
|
||||
{% for work in subscriber.wishlist.works.all %}
|
||||
{% include "book_panel.html" %}
|
||||
{% endfor %}
|
||||
|
||||
|
|
|
@ -13,6 +13,6 @@ def home(request):
|
|||
def user(request, username):
|
||||
u = get_object_or_404(User, username=username)
|
||||
return render_to_response('user.html',
|
||||
{"user": u, "wishlist": u.wishlist},
|
||||
{"subscriber": u},
|
||||
context_instance=RequestContext(request)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue