diff options
author | prathamesh | 2017-10-27 12:49:45 +0530 |
---|---|---|
committer | prathamesh | 2017-10-27 12:49:45 +0530 |
commit | 3ab5cf0783159aab349ef69db7500a42ad2e719c (patch) | |
tree | bdc30451cb826281e6d346321c56c57f549a6dff /yaksh/templates | |
parent | 840c00b9e939d2b33058d236ef4170923e0a018b (diff) | |
download | online_test-3ab5cf0783159aab349ef69db7500a42ad2e719c.tar.gz online_test-3ab5cf0783159aab349ef69db7500a42ad2e719c.tar.bz2 online_test-3ab5cf0783159aab349ef69db7500a42ad2e719c.zip |
Edit Profile Bug Fix
edit_profile view had a decorator has_profile.
So, has_profile will redirect to edit_profile if no profile.
But then if I submit my profile form then the has_profile will again
redirect to edit_profile, instead of updating my profile.
So this cycle will continue endlessly for a user with no profile, and
will never be able to create/update his profile!
Will face this when user is created via csv upload, django admin or
oauth login without pipeline.
Also, profile instance is passed to the profile form via get query,
which will fail if no profile.
Added a views test for the above.
Fixed.
Additionally that can be thought of later:
The has_profile decorator is used for few views only,
so one can access views if they know the url, even if they do not have a
profile.
email edit option for users
Diffstat (limited to 'yaksh/templates')
0 files changed, 0 insertions, 0 deletions