Opened 7 hours ago

Closed 5 hours ago

Last modified 5 hours ago

#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'

Change History (2)

comment:1 by Tim Graham, 5 hours ago

Resolution: invalid
Status: newclosed

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 in django.conf.global_settings.

comment:2 by Salman Mohammadi, 5 hours ago

Oh, thank you for the explanation.

Note: See TracTickets for help on using tickets.
Back to Top