Fix issues when the default id field is BigAutoField.
Review Request #14747 — Created Dec. 23, 2025 and updated
Django 6.0 changes the default type for automatically-added id fields to
useBigAutoFieldinstead ofAutoField. This change adds some compat
utilities to detect this, and updates tests to reflect the new types
that are used in this situation.
Ran unit tests.
| Summary | ID |
|---|---|
| yrsznrxrxrkustokpsrwtrukxmpnoomz |
| Description | From | Last Updated |
|---|---|---|
|
Since we're supporting Python 3 only now, can you add typing for this? |
|
|
|
Same here. |
|
|
|
Somewhat food for thought here. Every time we call this, we do an import, and the results really aren't likely … |
|
|
|
Two blank lines here. |
|
|
|
This got indented incorrectly. Same with a whole bunch below. |
|
|
|
To avoid visual alignment differences, which matter for string expectations, I'd like to keep each line in a multi-line string … |
|
-
-
-
-
Somewhat food for thought here.
Every time we call this, we do an import, and the results really aren't likely to change. My first instinct is to just cache this result, and then clear it if we need to for testing purposes.
-
-
-
To avoid visual alignment differences, which matter for string expectations, I'd like to keep each line in a multi-line string prefixed with
fin these cases.
- Commits:
-
Summary ID yrsznrxrxrkustokpsrwtrukxmpnoomz yrsznrxrxrkustokpsrwtrukxmpnoomz - Diff:
-
Revision 2 (+696 -500)