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

Create apps.py #876

Merged
merged 2 commits into from
Jun 18, 2021
Merged

Create apps.py #876

merged 2 commits into from
Jun 18, 2021

Conversation

Peter-van-Tol
Copy link
Contributor

Solves #873.

By adding an AppConfig, one can set the default_auto_field. The other parameters of the AppConfig are chosen so the behaviour for other installations remains unchanged.

@etianen
Copy link
Owner

etianen commented Jun 16, 2021

Interesting. I think BigAutoField is the correct choice here, but won't that also require a migration to be added?

I think for the time being keeping it as AutoField is safer. I've found some bugs in the migration Django generates for this in some of my work projects.

Changed BigAutoField to AutoField to prevent migrations
@Peter-van-Tol
Copy link
Contributor Author

In the PR I've changed the BigAutoField to AutoField. Also, the workflow was cancelled due to Flake8 error. This has been resolved as well.

@etianen etianen merged commit 725d96b into etianen:master Jun 18, 2021
@etianen
Copy link
Owner

etianen commented Jun 18, 2021

Merged, thanks!

The tests are failing for an unrelated issue: psycopg/psycopg2#1293 (comment)

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

Successfully merging this pull request may close these issues.

2 participants