diff options
| author | Alexander Sosnovskiy <alecs.box@gmail.com> | 2015-07-02 11:43:15 +0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-12-25 20:01:31 -0500 |
| commit | 2a7ce34600d0f879e93c9a5e02215948ed3bb6ac (patch) | |
| tree | d1a4770772b452513e1d64c090dc15ae287afe70 /docs | |
| parent | a1d0c60fa05cbad2e5a25ec37e0afaf1b84c9302 (diff) | |
Fixed #14286 -- Added models.BigAutoField.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/fields.txt | 12 | ||||
| -rw-r--r-- | docs/releases/1.10.txt | 4 | ||||
| -rw-r--r-- | docs/topics/forms/modelforms.txt | 2 |
3 files changed, 17 insertions, 1 deletions
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`. diff --git a/docs/releases/1.10.txt b/docs/releases/1.10.txt index 8564c8286d..077a27cea1 100644 --- a/docs/releases/1.10.txt +++ b/docs/releases/1.10.txt @@ -242,6 +242,10 @@ Models :class:`~django.db.models.Func`. This attribute can be used to set the number of arguments the function accepts. +* Added :class:`~django.db.models.BigAutoField` which acts much like an + :class:`~django.db.models.AutoField` except that it is guaranteed + to fit numbers from ``1`` to ``9223372036854775807``. + Requests and Responses ^^^^^^^^^^^^^^^^^^^^^^ diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index 42594e7002..46a1cbe774 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -56,6 +56,8 @@ Model field Form field =================================== ================================================== :class:`AutoField` Not represented in the form +:class:`BigAutoField` Not represented in the form + :class:`BigIntegerField` :class:`~django.forms.IntegerField` with ``min_value`` set to -9223372036854775808 and ``max_value`` set to 9223372036854775807. |
