From 5bd63663a9754ef783aa21402f534fe6ed45ef57 Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Thu, 17 Dec 2009 15:10:38 +0000 Subject: Fixed #399: Added big integer field. Thanks to Tomáš Kopeček for persistently maintaining a patch for this. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://code.djangoproject.com/svn/django/trunk@11887 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/models/fields.txt | 12 ++++++++++++ docs/topics/forms/modelforms.txt | 8 ++++++++ 2 files changed, 20 insertions(+) (limited to 'docs') diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 0cb5be4b92..cd8cdc7a01 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -299,6 +299,18 @@ 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`. +``BigIntegerField`` +------------------- + +.. versionadded:: 1.2 + +.. class:: BigIntegerField([**options]) + +A 64 bit integer, much like an :class:`IntegerField` except that it is +guaranteed to fit numbers from -9223372036854775808 to 9223372036854775807. The +admin represents this as an ```` (a single-line input). + + ``BooleanField`` ---------------- diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index c5aa9c8a77..024479508a 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -46,6 +46,10 @@ the full list of conversions: =============================== ======================================== ``AutoField`` Not represented in the form + ``BigIntegerField`` ``IntegerField`` with ``min_value`` set + to -9223372036854775808 and ``max_value`` + set to 9223372036854775807. + ``BooleanField`` ``BooleanField`` ``CharField`` ``CharField`` with ``max_length`` set to @@ -108,6 +112,10 @@ the full list of conversions: The ``FloatField`` form field and ``DecimalField`` model and form fields are new in Django 1.0. +.. versionadded:: 1.2 + The ``BigIntegerField`` is new in Django 1.2. + + As you might expect, the ``ForeignKey`` and ``ManyToManyField`` model field types are special cases: -- cgit v1.3