diff options
author | prathamesh | 2017-11-13 16:55:34 +0530 |
---|---|---|
committer | prathamesh | 2017-11-13 16:55:34 +0530 |
commit | 847c24c0fe3c9d9f31ae4e5c3c0a68b783873592 (patch) | |
tree | cce9998382f769b8c33ecfa49ec3f6db0fb5a2e9 | |
parent | dadf1d1148982c841b5002fe0cc26a82d9d34c95 (diff) | |
download | online_test-847c24c0fe3c9d9f31ae4e5c3c0a68b783873592.tar.gz online_test-847c24c0fe3c9d9f31ae4e5c3c0a68b783873592.tar.bz2 online_test-847c24c0fe3c9d9f31ae4e5c3c0a68b783873592.zip |
if password is empty then defaults to email
-rw-r--r-- | yaksh/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index 8bda843..e7c2037 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -1938,6 +1938,8 @@ def _get_csv_values(row, fields): row['lastname']]) if 'password' in fields: password = row['password'].strip() + if not password: + password = email else: password = email if 'roll_no' in fields: |