#36599 closed Cleanup/optimization (invalid)
Wrong default value of DEFAULT_AUTO_FIELD in the documentation
Reported by: | Salman Mohammadi | Owned by: | |
---|---|---|---|
Component: | Documentation | Version: | 5.2 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hi everyone,
in the dev version of the documentation, we can see it correctly that the default value for DEFAULT_AUTO_FIELD is: django.db.models.BigAutoField
{1} but it is not the case in the docs versions of 5.2 {2} and 4.2 {3} which both have the default value which is mentioned in the dev version but the respected docs have not been updated and mentions the old default value which was 'django.db.models.AutoField'
Note:
See TracTickets
for help on using tickets.
The documentation is correct (the dev documentation changed in #36564). Your confusion may be that in older versions, the default startproject template had
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
. That's different from the default value indjango.conf.global_settings
.