Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Conversation

alvinchow86
Copy link
Contributor

Added some tests, on top of the pull request #18 from @cborgolte . I have a custom user model with USERNAME_FIELD = 'email' (well not that custom but didn't feel like making one from scratch).

One change I made was remove username_field as a class variable from JSONWebTokenSerializer, as it made testing a bit harder (get_user_model() would only be evaluated on module import, and you'd have to do manually reload the module after changing settings.AUTH_USER_MODEL)

Christoph Borgolte and others added 2 commits April 8, 2014 19:31
jpadilla added a commit that referenced this pull request Jun 6, 2014
@jpadilla jpadilla merged commit 69f363d into jpadilla:master Jun 6, 2014
@jpadilla
Copy link
Owner

jpadilla commented Jun 6, 2014

@alvinchow86 this looks great, will soon bump up version and release on pypi. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants