if you aren't using a custom user model, you can add this to your settings.py
DJOSER = { 'LOGIN_FIELD': 'email', 'USER_ID_FIELD':'username'}