Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#16742 closed Cleanup/optimization (fixed)

Example actually getting the extra fields on many-to-many relationships

Reported by: aj Owned by: nobody
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: anssi.kaariainen@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

It would be really useful if the documentation included an example of how to actually get one of the extra fields e.g. find what date Ringo Starr joined the Beatles.

Attachments (1)

access_extra_fields_on_through_model.diff (1.1 KB) - added by Nick Lang 10 years ago.
patch: example of accessing fields of a through model for a many to many

Download all attachments as: .zip

Change History (3)

comment:1 Changed 10 years ago by Anssi Kääriäinen

Cc: anssi.kaariainen@… added
Triage Stage: UnreviewedAccepted

I think you have a high chance of getting your patch accepted - documentation fixes tend to get in.

Oh, wait. Where is the patch? :)

Marking this accepted.

Changed 10 years ago by Nick Lang

patch: example of accessing fields of a through model for a many to many

comment:2 Changed 10 years ago by Julien Phalip

Resolution: fixed
Status: newclosed

In [16817]:

Fixed #16742 -- Provided code examples in the models documentation for accessing extra fields on many-to-many relationships. Many thanks to aj for the suggestion and to Nick Lang for the patch.

Note: See TracTickets for help on using tickets.
Back to Top