Code

Opened 3 years ago

Last modified 3 years ago

#17345 new New feature

Allow ordering override on ManyToManyField

Reported by: FunkyBob Owned by: nobody
Component: Database layer (models, ORM) Version: 1.3
Severity: Normal Keywords: m2m, ordering
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In conjunction with #17344, discussion with SmileyChris revealed it may be useful, too, to allow to specify an ordering on a m2m field directly, allowing it to override the default ordering of the related model.

We may also need to add a reverse_ordering to specify the ordering of this model from the PoV of the related model.

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as new
The owner will be changed from nobody to anonymous. Next status will be 'assigned'
as The resolution will be set. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.