Code

Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#664 closed enhancement (fixed)

Document 'singular' argument for ManyToMany fields

Reported by: L.Plant.98@… Owned by: jacob
Component: Documentation Version:
Severity: minor Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Having two ManyToMany relationships between the same two models is actually fairly common (I came across it myself early on in creating my models and have seen a number of people asking about this situation). So it needs to be better documented how you do this and get the get_XXX methods you need, and below is a very small patch to the docs which I think is correct. (I haven't checked the formatting parses correctly as I don't know how to do that, but it should be right).

Attachments (1)

django-docs-manytomany-singular.diff (1.1 KB) - added by L.Plant.98@… 9 years ago.
description of the 'singular' argument in the docs

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by L.Plant.98@…

description of the 'singular' argument in the docs

comment:1 Changed 9 years ago by anonymous

  • Severity changed from normal to minor
  • Type changed from defect to enhancement

comment:2 Changed 8 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

(In [1025]) Documented singular argument for m2m relationships (fixes #664).

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.