Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 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: master
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 3 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 3 years ago by akaariai

  • Cc anssi.kaariainen@… added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

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 3 years ago by Nick Lang

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

comment:2 Changed 3 years ago by julien

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

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.

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.