Opened 3 years ago

Closed 3 years ago

#19608 closed Uncategorized (invalid)

Admin Actions example: "actions" variable appears incorrectly placed

Reported by: raprasad@… Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords: admin actions
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

In the 1st example of this section:

https://docs.djangoproject.com/en/dev/ref/contrib/admin/actions/#actions-as-modeladmin-methods

The line "actions = make_published?" appears before the "make_published" is defined. This "actions = ..." line should appear at the end.

Thanks

Change History (1)

comment:1 Changed 3 years ago by timo

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

Notice that 'make_published' is in quotes. Defining things this way means the order doesn't matter.

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