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
If I set the lookup field to be username instead of email, the POST request gives error "Enter a valid email address."
Steps to reproduce:
Add this to settings.py
DJANGO_REST_LOOKUP_FIELD = 'username'
Send a POST request with following body content:
{ "email": "someusername123" }
Expected behavior
The keyname must be dynamic and not always be the 'email' in the POST request body. The respective field validations should run based on the declared field as described above.
The text was updated successfully, but these errors were encountered:
If I set the lookup field to be
username
instead ofemail
, the POST request gives error "Enter a valid email address."Steps to reproduce:
settings.py
DJANGO_REST_LOOKUP_FIELD = 'username'
{ "email": "someusername123" }
Expected behavior
The keyname must be dynamic and not always be the
'email'
in the POST request body. The respective field validations should run based on the declared field as described above.The text was updated successfully, but these errors were encountered: