summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py2
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: