Skip to content

Commit

Permalink
revert DEFAULT_AUTO_FIELD to AutoField (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadavidthomas authored Feb 13, 2024
1 parent b0a2d1e commit fc72831
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Minimum Copier version set to 9.1.0.
- `author_name` and `github_owner` in `copier.yml` now have inline validators to ensure they are not empty.

### Changed

- `DEFAULT_AUTO_FIELD` reverted to `django.db.models.AutoField`. We still have projects that have not migrated to the new field and this change was potentially breaking for them.

## [2024.1]

Initial release! 🎉
Expand Down
2 changes: 1 addition & 1 deletion src/django_twc_project/{{ module_name }}/settings.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ DATABASE_ROUTERS = [
"email_relay.db.EmailDatabaseRouter",
]

DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"

DEFAULT_FROM_EMAIL = env(
"DEFAULT_FROM_EMAIL",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Migration(migrations.Migration):
fields=[
(
"id",
models.BigAutoField(
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
Expand Down

0 comments on commit fc72831

Please sign in to comment.