Merge branch 'view-profile' of https://github.com/bheesham/GetTogether into bheesham-view-profile
This commit is contained in:
commit
04282c8d85
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue