summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBoulder Sprinters <boulder-sprinters@djangoproject.com>2007-05-17 16:06:01 +0000
committerBoulder Sprinters <boulder-sprinters@djangoproject.com>2007-05-17 16:06:01 +0000
commite7cf3ed9890c03c31ea51f1b3c01cc741c2b26d5 (patch)
treeab715b54902a363e730519bbfd851f1cfa59fc97 /docs
parent310ae7eccc09e0a488a81f690876018ca39f34a8 (diff)
boulder-oracle-sprint: Added documentation for the db_tablespace options and Oracle coercion of the null option.
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/model-api.txt19
1 files changed, 18 insertions, 1 deletions
diff --git a/docs/model-api.txt b/docs/model-api.txt
index e7afbfd13a..59d415a124 100644
--- a/docs/model-api.txt
+++ b/docs/model-api.txt
@@ -456,6 +456,10 @@ has ``null=True``, that means it has two possible values for "no data":
possible values for "no data;" Django convention is to use the empty
string, not ``NULL``.
+Due to database limitations when using the Oracle backend, the ``null=True``
+option will be coerced for string-based fields, and the value ``NULL`` will
+be stored to denote the empty string.
+
``blank``
~~~~~~~~~
@@ -550,6 +554,13 @@ scenes.
If ``True``, ``django-admin.py sqlindexes`` will output a ``CREATE INDEX``
statement for this field.
+``db_tablespace``
+~~~~~~~~~~~~~~~~~
+
+If this field is indexed, the name of the database tablespace to use for the
+index. The default is the ``db_tablespace`` of the model, if any. If the
+backend doesn't support tablespaces, this option is ignored.
+
``default``
~~~~~~~~~~~
@@ -743,7 +754,7 @@ relationship should work. All are optional:
``limit_choices_to`` A dictionary of lookup arguments and values (see
the `Database API reference`_) that limit the
available admin choices for this object. Use this
- with functions from the Python ``datetime`` module
+ with functions from the Python ``datetime`` module
to limit choices of objects by date. For example::
limit_choices_to = {'pub_date__lte': datetime.now}
@@ -960,6 +971,12 @@ If your database table name is an SQL reserved word, or contains characters
that aren't allowed in Python variable names -- notably, the hyphen --
that's OK. Django quotes column and table names behind the scenes.
+``db_tablespace``
+-----------------
+
+The name of the database tablespace to use for the model. If the backend
+doesn't support tablespaces, this option is ignored.
+
``get_latest_by``
-----------------