diff options
author | prathamesh | 2020-08-26 18:51:25 +0530 |
---|---|---|
committer | prathamesh | 2020-08-26 19:08:27 +0530 |
commit | 570b141055f9baa27c539842b14756838949ba60 (patch) | |
tree | 97afa927cf4b1cf807f085bfc578e4e28fca700b /yaksh/fixtures | |
parent | 3999e744fe1a3a4c4fcb7d2763b36def9d7bb213 (diff) | |
download | online_test-570b141055f9baa27c539842b14756838949ba60.tar.gz online_test-570b141055f9baa27c539842b14756838949ba60.tar.bz2 online_test-570b141055f9baa27c539842b14756838949ba60.zip |
Avoid duplicate user entry with same email address during upload.
Django allows multiple usernames with same email id.
Preventing this, as we identify users with their email id or username.
Diffstat (limited to 'yaksh/fixtures')
-rw-r--r-- | yaksh/fixtures/user_existing_email.csv | 2 | ||||
-rw-r--r-- | yaksh/fixtures/users_add_update_reject.csv | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/yaksh/fixtures/user_existing_email.csv b/yaksh/fixtures/user_existing_email.csv new file mode 100644 index 0000000..ee5fcd0 --- /dev/null +++ b/yaksh/fixtures/user_existing_email.csv @@ -0,0 +1,2 @@ +firstname, lastname, email +abc, abc, demo_student@test.com diff --git a/yaksh/fixtures/users_add_update_reject.csv b/yaksh/fixtures/users_add_update_reject.csv index 1990179..2b8fcf6 100644 --- a/yaksh/fixtures/users_add_update_reject.csv +++ b/yaksh/fixtures/users_add_update_reject.csv @@ -1,4 +1,4 @@ firstname, lastname, email, institute,department,roll_no,remove,password,username test, test, test@g.com, TEST, TEST, TEST101, FALSE, TEST, test -test2, test, test@g.com, TEST, TEST, TEST101, FALSE, TEST, test2 -test2, test, test@g.com, TEST, TEST, TEST101, TRUE, TEST, test2 +test2, test, test2@g.com, TEST, TEST, TEST101, FALSE, TEST, test2 +test2, test, test2@g.com, TEST, TEST, TEST101, TRUE, TEST, test2 |