Merge branch 'view-profile' of https://github.com/bheesham/GetTogether into bheesham-view-profile

This commit is contained in:
Michael Hall 2018-02-25 17:04:43 -05:00
commit 04282c8d85
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ Homepage: {{user.weburl}} <br>
<ul>
{% for t in teams %}
<li>
<a href="{% url 'show-team' t.id %}" title="Team page for {{t.team.name}}">{{t.team.name}}</a>
<a href="{% url 'show-team' t.id %}" title="Team page for {{t.name}}">{{t.name}}</a>
</li>
{% endfor %}
</ul>

View file

@ -38,7 +38,7 @@ def show_profile(request, user_id):
except ObjectDoesNotExist:
return render(request, template, {'user': None}, status=404)
teams = Member.objects.filter(user_id=user_id)
teams = user.memberships.all()
context = {
'user': user,