Opened 4 years ago

Closed 4 years ago

Last modified 3 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.

Attachments (0)

Change History (3)

comment:1 Changed 4 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 4 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 3 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

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

Note: See TracTickets for help on using tickets.