Django

Code

Changeset 5276

Show
Ignore:
Timestamp:
05/17/07 11:06:01 (1 year ago)
Author:
bouldersprinters
Message:

boulder-oracle-sprint: Added documentation for the db_tablespace options and Oracle coercion of the null option.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/boulder-oracle-sprint/docs/model-api.txt

    r5259 r5276  
    457457string, not ``NULL``. 
    458458 
     459Due to database limitations when using the Oracle backend, the ``null=True`` 
     460option will be coerced for string-based fields, and the value ``NULL`` will 
     461be stored to denote the empty string. 
     462 
    459463``blank`` 
    460464~~~~~~~~~ 
     
    550554If ``True``, ``django-admin.py sqlindexes`` will output a ``CREATE INDEX`` 
    551555statement for this field. 
     556 
     557``db_tablespace`` 
     558~~~~~~~~~~~~~~~~~ 
     559 
     560If this field is indexed, the name of the database tablespace to use for the 
     561index. The default is the ``db_tablespace`` of the model, if any. If the 
     562backend doesn't support tablespaces, this option is ignored. 
    552563 
    553564``default`` 
     
    744755                             the `Database API reference`_) that limit the 
    745756                             available admin choices for this object. Use this 
    746                              with functions from the Python ``datetime`` module  
     757                             with functions from the Python ``datetime`` module 
    747758                             to limit choices of objects by date. For example:: 
    748759 
     
    960971that aren't allowed in Python variable names -- notably, the hyphen -- 
    961972that's OK. Django quotes column and table names behind the scenes. 
     973 
     974``db_tablespace`` 
     975----------------- 
     976 
     977The name of the database tablespace to use for the model. If the backend 
     978doesn't support tablespaces, this option is ignored. 
    962979 
    963980``get_latest_by``