Skip to content

Commit

Permalink
Fixes #67
Browse files Browse the repository at this point in the history
  • Loading branch information
KC Shafer committed Jun 27, 2014
1 parent c327be6 commit aaf7400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/user_profile/view_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h1>{{ usr.username }}'s Favorites</h1>
<div class="free-wall">
{% for a in liked_art %}
<div class="brick">
<a href="/art/view/{{ a.id }}"><img src="{{ MEDIA_URL }}{{ a.art__photo }}" width="100%"/></a>
<a href="/art/view/{{ a.art__id }}"><img src="{{ MEDIA_URL }}{{ a.art__photo }}" width="100%"/></a>
<div class="info">
<div class="art_title">{{ a.art__title }}</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion user_profile/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def view_profile(request, user_id):
user = User.objects.get(id=user_id)
profile = Profile.objects.get(user_id=user_id)
art = Art.objects.all().filter(user_id=user_id)
liked_art = Like.objects.filter(user_id=user.id).values('art__title', 'art__photo')
liked_art = Like.objects.filter(user_id=user.id).values('art__title', 'art__photo', 'art__id')
template = loader.get_template('user_profile/view_profile.html')
context = RequestContext(request, {'usr': user, 'profile': profile, 'art': art, 'liked_art': liked_art})

Expand Down

0 comments on commit aaf7400

Please sign in to comment.