the update_user() function in models.py makes sure that the email is not a duplicate when updating it. However, it does not account for the fact that the user may not want to change their email. If this is the case and the user enters their old email in the email field, the program will reject the update since it believes this is a duplicate.
the update_user() function in models.py makes sure that the email is not a duplicate when updating it. However, it does not account for the fact that the user may not want to change their email. If this is the case and the user enters their old email in the email field, the program will reject the update since it believes this is a duplicate.