Ticket #664: django-docs-manytomany-singular.diff
| File django-docs-manytomany-singular.diff, 1.1 kB (added by L.Plant.98@cantab.net, 3 years ago) |
|---|
-
model-api.txt
old new 621 621 vertically). 622 622 623 623 ``limit_choices_to`` See the description under ``ForeignKey`` above. 624 625 ``singular`` The singular name of the field, which is used to make 626 the ``get`` methods. Normally, using the example given 627 above, Django would give the Pizza objects methods 628 like ``get_topping_list()`` where ``topping`` is the 629 singular and is derived from the lowercase version of the 630 class being linked to. Use the 'singular' parameter to 631 change this - you need this if you have more than one 632 ManyToMany relationship to the same class. 624 633 ======================= ============================================================ 625 634 626 635 One-to-one relationships
