Opened 10 years ago

Closed 10 years ago

#390 closed defect (invalid)

corrections for model reference documentation

Reported by: anonymous Owned by: jacob
Component: Documentation Version:
Severity: trivial Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


In using the ManyToOneField to relate a model to another model multiple times, it turned out to be necessary to use the name parameter (to avoid identical field names in SQL). This is done in the short piece of example code but not documented in the surrounding text.

It is undocumented how to use unique_together with ManyToOneFields (whose field names are automagically generated), though it is possible to figure it out using the generated SQL.

Change History (1)

comment:1 Changed 10 years ago by adrian

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

This is no longer valid, as of [549].

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