Verified Commit 3366e823 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Use user pk for user profile

parent 4687e2c2
...@@ -93,7 +93,7 @@ def index(request): ...@@ -93,7 +93,7 @@ def index(request):
@login_required @login_required
def profile(request, pk=None): def profile(request, pk=None):
if pk: if pk:
member = get_object_or_404(models.Member, pk=int(pk)) member = get_object_or_404(models.Member, user__pk=int(pk))
else: else:
member = get_object_or_404(models.Member, user=request.user) member = get_object_or_404(models.Member, user=request.user)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment