django-ninja-apikey icon indicating copy to clipboard operation
django-ninja-apikey copied to clipboard

Add compatibility with custom user models

Open ProfessorLogout opened this issue 2 years ago • 1 comments

When using a custom user model the username field may not exist on the model.

Django solves this by having a get_username method on the User model as documented here.

Since this is already required for a working custom user model I think it would be great to adhere to the same interface.

ProfessorLogout avatar May 04 '23 12:05 ProfessorLogout

I forked the project to implement some features that I needed. Feel free to submit your PR there.

Source: https://github.com/lucasrcezimbra/ninja-api-key PyPI: https://pypi.org/project/ninja-api-key/

lucasrcezimbra avatar May 09 '24 20:05 lucasrcezimbra