Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#13780 closed (invalid)

Admin site documentation should specify ordering directions

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


The docs for the admin site don't mention ordering directions.

class AscendingStoryAdmin(admin.ModelAdmin):
	ordering = ('publishing_day',)

class DescendingStoryAdmin(admin.ModelAdmin):
	ordering = ('-publishing_day',)

They should. It's important and not obvious to everyone.

Change History (3)

comment:1 Changed 5 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

comment:2 Changed 5 years ago by kmtracey

I think the complaint here might be that the doc in admin does not mention the ability to control ascending/descending. It just says in the same format as the model's ordering parameter. It might be nice if that ordering were a link to the doc for the model's ordering doc, but I don't see here any markup that allows us to cross-link to model meta option doc?

comment:3 Changed 4 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

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