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.
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.