From 2a7ce34600d0f879e93c9a5e02215948ed3bb6ac Mon Sep 17 00:00:00 2001 From: Alexander Sosnovskiy Date: Thu, 2 Jul 2015 11:43:15 +0300 Subject: Fixed #14286 -- Added models.BigAutoField. --- docs/ref/models/fields.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'docs/ref') diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 6320f20e24..0a33e96122 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -388,12 +388,22 @@ according to available IDs. You usually won't need to use this directly; a primary key field will automatically be added to your model if you don't specify otherwise. See :ref:`automatic-primary-key-fields`. +``BigAutoField`` +---------------- + +.. class:: BigAutoField(**options) + +.. versionadded:: 1.10 + +A 64-bit integer, much like an :class:`AutoField` except that it is +guaranteed to fit numbers from ``1`` to ``9223372036854775807``. + ``BigIntegerField`` ------------------- .. class:: BigIntegerField(**options) -A 64 bit integer, much like an :class:`IntegerField` except that it is +A 64-bit integer, much like an :class:`IntegerField` except that it is guaranteed to fit numbers from ``-9223372036854775808`` to ``9223372036854775807``. The default form widget for this field is a :class:`~django.forms.TextInput`. -- cgit v1.3