The startproject template already uses 64 bit integers, and the default
will change in a future version. See the 3.2 release notes (
https://docs.djangoproject.com/en/3.2/releases/3.2/#customizing-type-of-auto-created-primary-keys
) :

Starting with 3.2 new projects are generated with DEFAULT_AUTO_FIELD
> <https://docs.djangoproject.com/en/3.2/ref/settings/#std:setting-DEFAULT_AUTO_FIELD>
> set to BigAutoField
> <https://docs.djangoproject.com/en/3.2/ref/models/fields/#django.db.models.BigAutoField>.
> Also, new apps are generated with AppConfig.default_auto_field
> <https://docs.djangoproject.com/en/3.2/ref/applications/#django.apps.AppConfig.default_auto_field>
> set to BigAutoField
> <https://docs.djangoproject.com/en/3.2/ref/models/fields/#django.db.models.BigAutoField>.
> In a future Django release the default value of DEFAULT_AUTO_FIELD
> <https://docs.djangoproject.com/en/3.2/ref/settings/#std:setting-DEFAULT_AUTO_FIELD>
> will be changed to BigAutoField
> <https://docs.djangoproject.com/en/3.2/ref/models/fields/#django.db.models.BigAutoField>
> .
>

‪On Mon, 4 Oct 2021 at 09:58, ‫אורי‬‎ <u...@speedy.net> wrote:‬

> Hi,
>
> Are there any intentions to make DEFAULT_AUTO_FIELD
> and django.db.models.AutoField a 64-bit integers in future versions of
> Django?
>
> If not, why not?
>
> Thanks,
> אורי
> u...@speedy.net
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/CABD5YeGT-O0XMkZjC%3Dh%3DMWcJFEBo%3D%2BzXWpuBFfUsO5vJ3ZLH7g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-developers/CABD5YeGT-O0XMkZjC%3Dh%3DMWcJFEBo%3D%2BzXWpuBFfUsO5vJ3ZLH7g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM11e%3Dqk4Ofn9hPYbVAsiCbr2qCM2sJJYDE9nyWmUz8mvA%40mail.gmail.com.
  • DEF... אורי
    • ... Mariusz Felisiak
    • ... 'Adam Johnson' via Django developers (Contributions to Django itself)
      • ... אורי
        • ... 'Adam Johnson' via Django developers (Contributions to Django itself)
    • ... Pavlos Georgiadis

Reply via email to