Django

Code

Ticket #5673 (closed: wontfix)

Opened 1 year ago

Last modified 1 year ago

[enhancement] Admin interface only sort by the first ordering field in Meta class (in models)

Reported by: DXpublica@telefonica.net Assigned to: nobody
Milestone: Component: django.contrib.admin
Version: SVN Keywords: ordering Meta multiple-ordering
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

In any model, if we have multiple ordering:

class Meta:
      ordering = ['one_field', 'another_field']

admin mode only sort the model by the first field ('one_field' in example) and not only by all specified fields, as it were the right thing

It's not a bug (see discussion: http://groups.google.com/group/django-developers/browse_thread/thread/c74afae800fda0b9/7c744053660b8a82#7c744053660b8a82) but it could be an enhancement

Attachments

Change History

10/03/07 09:51:54 changed by mtredinnick

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to wontfix.
  • needs_tests changed.
  • needs_docs changed.

Given the difficulties in making this work sensibly in the UI (which is the reason for the current behaviour), I'm going to close this ticket for now. If/when somebody comes up with code that implements the feature, they can open a ticket and attach their patch. Until then, though, having an open ticket about such an item is only going to fill up the list of open tickets. It's not something we're likely to work on as a priority.

10/05/07 09:47:54 changed by anonymous

You could mark as "open" and "another branch". With that, it does not annoy us and we remember it

Thansks, Xan.


Add/Change #5673 ([enhancement] Admin interface only sort by the first ordering field in Meta class (in models))




Change Properties
Action