Opened 12 years ago

Closed 12 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 by Tim Graham, 12 years ago

Resolution: invalid
Status: newclosed

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