Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] #183

Open
izabala033 opened this issue Oct 16, 2023 · 0 comments
Open

[BUG] #183

izabala033 opened this issue Oct 16, 2023 · 0 comments

Comments

@izabala033
Copy link

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.

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

No branches or pull requests

1 participant