Changeset 1025
- Timestamp:
- 10/30/05 08:35:44 (3 years ago)
- Files:
-
- django/trunk/docs/model-api.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/model-api.txt
r1006 r1025 622 622 623 623 ``limit_choices_to`` See the description under ``ForeignKey`` above. 624 625 ``singular`` The singular name of the field. Use to name the ``get_*`` 626 methods: in the example above, Django gives the ``Pizza`` 627 objects a ``get_topping_list()`` method, where ``topping`` 628 is the default ``singular`` value derived from the lowercase 629 version of the class being linked to. Use the singular 630 parameter to change this, which is if you want one model to 631 have multiple ``ManyToMany`` relationships to another model. 624 632 ======================= ============================================================ 625 633
