Skip to content

6.0b0 - Add missing `DEFAULT_AUTO_FIELD`

Pre-release
Pre-release
Compare
Choose a tag to compare
@tony tony released this 15 Oct 15:49
· 20 commits to master since this release
0cc797d

Breaking change: Missing DEFAULT_AUTO_FIELD

This sets a DEFAULT_AUTO_FIELD to BigAutoField for robots in AppConfig. Previously, there was no app configuration or setting for this. (thank you @jan-szejko-steelseries in #134)

Robots 5.0 included a BigAutoField migration file for django 3.2 support (see #112), however, this caused an extra migration to be created to set django.db.models.AutoField for certain users (see #124).

Breaking: Migration issues

New django sites should work fine.

Existing sites that manually created migrations for robots 5.0:

If you ran ./manage.py makemigrations to bypass the #112 issue, you may need to resolve this manually if a custom migration you made for robots was applied in django_migrations.

Resources:
https://docs.djangoproject.com/en/4.1/releases/3.2/#customizing-type-of-auto-created-primary-keys
https://docs.djangoproject.com/en/3.2/ref/settings/#std-setting-DEFAULT_AUTO_FIELD

Packaging

  • build: Remove django south migrations by @tony in #138

New Contributors

Full Changelog: 5.0...6.0b0