[Django]-DRF JWT Authentication object has no attribute 'id'

5👍

I’ve reset the changes done in METADATA, then gone to my project settings.py file and added

SIMPLE_JWT = {
    'USER_ID_FIELD': 'user_id'
}

Leave a comment