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):
@login_required
def profile(request, pk=None):
if pk:
member = get_object_or_404(models.Member, pk=int(pk))
member = get_object_or_404(models.Member, user__pk=int(pk))
else:
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