diff options
| author | Caio Ariede <caio.ariede@gmail.com> | 2019-10-16 09:32:12 -0300 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-11-19 09:34:11 +0100 |
| commit | 555bebe7749ab1a72d5141a00f9ce7a602c72298 (patch) | |
| tree | 54b6414c047c65dd5d4c22e388168d9c9edfb84a /docs | |
| parent | aa12cf07c9202e117712abe2621d901dd6dd94b4 (diff) | |
Fixed #30987 -- Added models.PositiveBigIntegerField.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/fields.txt | 11 | ||||
| -rw-r--r-- | docs/releases/3.1.txt | 5 | ||||
| -rw-r--r-- | docs/topics/forms/modelforms.txt | 2 |
3 files changed, 18 insertions, 0 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index dfd9f9b665..ad39a4ab70 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -1177,6 +1177,17 @@ values are stored as null. Like :class:`BooleanField` with ``null=True``. Use that instead of this field as it's likely to be deprecated in a future version of Django. +``PositiveBigIntegerField`` +--------------------------- + +.. class:: PositiveBigIntegerField(**options) + +.. versionadded:: 3.1 + +Like a :class:`PositiveIntegerField`, but only allows values under a certain +(database-dependent) point. Values from ``0`` to ``9223372036854775807`` are +safe in all databases supported by Django. + ``PositiveIntegerField`` ------------------------ diff --git a/docs/releases/3.1.txt b/docs/releases/3.1.txt index 27255d16ae..ceb0f55742 100644 --- a/docs/releases/3.1.txt +++ b/docs/releases/3.1.txt @@ -194,6 +194,11 @@ Models * ``TREE`` format on MySQL 8.0.16+, * ``analyze`` option on MySQL 8.0.18+ and MariaDB. +* Added :class:`~django.db.models.PositiveBigIntegerField` which acts much like + a :class:`~django.db.models.PositiveIntegerField` except that it only allows + values under a certain (database-dependent) limit. Values from ``0`` to + ``9223372036854775807`` are safe in all databases supported by Django. + Pagination ~~~~~~~~~~ diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index bfc8445068..7060c00105 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -106,6 +106,8 @@ Model field Form field :class:`NullBooleanField` :class:`~django.forms.NullBooleanField` +:class:`PositiveBigIntegerField` :class:`~django.forms.IntegerField` + :class:`PositiveIntegerField` :class:`~django.forms.IntegerField` :class:`PositiveSmallIntegerField` :class:`~django.forms.IntegerField` |
