diff options
author | Madhusudan.C.S | 2011-02-07 22:28:37 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2011-02-07 22:28:37 +0530 |
commit | e8b9e29665e662c98480306a0083b2aba2359dfc (patch) | |
tree | 32452c43582e1b46930994afe05434bf0dee0f1b | |
parent | 165184023fe6aec49bb0027cf95dcd4a25cbc13e (diff) | |
download | pytask-e8b9e29665e662c98480306a0083b2aba2359dfc.tar.gz pytask-e8b9e29665e662c98480306a0083b2aba2359dfc.tar.bz2 pytask-e8b9e29665e662c98480306a0083b2aba2359dfc.zip |
Convert user_id to int before querying the database.
-rwxr-xr-x | pytask/profile/views.py | 2 |
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 = { |