You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the renewed registration process, first_name, last_name and national_code are empty. so we get them in sendinfo from user and I set them if they are empty, we have one problem and one decision here.
Problem: we don't check national_code uniqueness and if it is not unique we return an informed message so now it result to 500.
Decision: we set this new variables to user and profile if the models data are None or ''. but we can use this data to modify user and profile all time.
The text was updated successfully, but these errors were encountered:
likecodingloveproblems
changed the title
checking unique of national_code in sendinfo process
checking uniqueness of national_code in sendinfo process
Jan 9, 2021
In the renewed registration process, first_name, last_name and national_code are empty. so we get them in sendinfo from user and I set them if they are empty, we have one problem and one decision here.
Problem: we don't check national_code uniqueness and if it is not unique we return an informed message so now it result to 500.
Decision: we set this new variables to
user
andprofile
if the models data areNone
or ''. but we can use this data to modify user and profile all time.The text was updated successfully, but these errors were encountered: