From 5f4d85f7093352bcab147aebf92958ac147b6b3d Mon Sep 17 00:00:00 2001 From: Bheesham Persaud Date: Sun, 25 Feb 2018 12:11:26 -0500 Subject: [PATCH] Fix bug with show-profile. --- get_together/templates/get_together/users/show_profile.html | 2 +- get_together/views/user.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/get_together/templates/get_together/users/show_profile.html b/get_together/templates/get_together/users/show_profile.html index 0ccf8af..20d79e6 100644 --- a/get_together/templates/get_together/users/show_profile.html +++ b/get_together/templates/get_together/users/show_profile.html @@ -17,7 +17,7 @@ Homepage: {{user.weburl}}
diff --git a/get_together/views/user.py b/get_together/views/user.py index c7c9aad..1f0a47e 100644 --- a/get_together/views/user.py +++ b/get_together/views/user.py @@ -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,