Open melton-jason opened 1 year ago
@melton-jason uniqueness rules are done in a case-sensitive manner (if done via uniquenessrules.py). Django queries are case-sensitive.
Yes you are correct! My apologies for the misunderstanding.
However, the issue still remains, although it is caused by the database and not related to Django.
if there is a specifyuser called
spadmin
, the frontend will allow creating a user with namesPadmin
, but this will thow a backend exception.
The uniqueness rules should be done in a case-insensitive manner.
As far as backend is concerned, this can be solved by using a filter such as iexact
Actually, on testing, django filters are case-insensitive!
Correction: MySQL query was case-insensitive is 'utf8mb4_general_ci' which is case insensitive.
Can recreate in edge (7.9.6)