anexia-it / django-rest-passwordreset

An extension of django rest framework, providing a configurable password reset strategy
BSD 3-Clause "New" or "Revised" License
419 stars 148 forks source link

[BUG] #183

Open izabala033 opened 12 months ago

izabala033 commented 12 months ago

Describe the bug The migration 0002 fails because of the populate_auto_incrementing_pk_field function. When using ResetPasswordToken.objects.all(), it doesn't take in consideration extra databases. It should be something like ResetPasswordToken.objects.using(database_name).all()

How to reproduce Create a second database. Migrate the new database (python manage.py migrate DATABASE=db2)

Expected behavior The database I want to migrate is migrated without errors with the 0002_pk_migration.py migration.