Changeset 7480 for django/trunk/docs/model-api.txt
- Timestamp:
- 04/27/08 06:55:47 (2 months ago)
- Files:
-
- django/trunk/docs/model-api.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/model-api.txt
r7477 r7480 53 53 some model metadata but can be overridden. See `Table names`_ below. 54 54 * An ``id`` field is added automatically, but this behavior can be 55 overrid en. See `Automatic primary key fields`_ below.55 overridden. See `Automatic primary key fields`_ below. 56 56 * The ``CREATE TABLE`` SQL in this example is formatted using PostgreSQL 57 57 syntax, but it's worth noting Django uses SQL tailored to the database … … 2195 2195 The second type of model inheritance supported by Django is when each model in 2196 2196 the hierarchy is a model all by itself. Each model corresponds to its own 2197 database table and can be queried and created ind vidually. The inheritance2197 database table and can be queried and created individually. The inheritance 2198 2198 relationship introduces links between the child model and each of its parents 2199 2199 (via an automatically created ``OneToOneField``). For example:: … … 2243 2243 2244 2244 If the parent has an ordering and you don't want the child to have any natural 2245 ordering, you can explicit y set it to be empty::2245 ordering, you can explicitly set it to be empty:: 2246 2246 2247 2247 class ChildModel(ParentModel):
