robinhood / deux

Multifactor Authentication for Django Rest Framework
Other
155 stars 56 forks source link

No Support for Custom User Model #14

Open adilmalik393 opened 6 years ago

adilmalik393 commented 6 years ago

I have custom user model and when i hit ./manage.py migrate.

It gives me following error.

deux.MultiFactorAuth.user: (fields.E301) Field defines a relation with the model 'auth.User', which has been swapped out. HINT: Update the relation to point at 'settings.AUTH_USER_MODEL

I am assuming that this library doesn't support custom user model yet. Any idea how to do it.

willjleongdv commented 6 years ago

Here is temp workaround until Deux releases a next stable version. use git+git://github.com/robinhood/deux.git in your requirements.txt and the most recent master branch will be installed that uses the django default user config rather than hardcoding a new custom user.

View https://github.com/robinhood/deux/issues/8 for reference