summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpytask/profile/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pytask/profile/views.py b/pytask/profile/views.py
index d39ca1f..525ff3b 100755
--- a/pytask/profile/views.py
+++ b/pytask/profile/views.py
@@ -36,7 +36,7 @@ def view_user_profile(request, user_id, template_name='profile/view_user.html'):
""" Display the profile information of the user specified in the ID.
"""
- user = shortcuts.get_object_or_404(User, pk=user_id)
+ user = shortcuts.get_object_or_404(User, pk=int(user_id))
profile = user.get_profile()
context = {