Opened 14 years ago
Last modified 14 years ago
#16377 closed Cleanup/optimization
"Conditionally disabling actions" documentation needs updating — at Version 1
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Documentation | Version: | 1.3 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description (last modified by )
The docs in question are:
https://docs.djangoproject.com/en/1.3/ref/contrib/admin/actions/#conditionally-enabling-or-disabling-actions
The suggestion is to use del actions['delete_selected'], which worked fine in Django 1.2. However, because of changes made to django.contrib.admin.options.get_actions, in the case that IS_POPUP_VAR == True, this del statement will result in an exception. Need a try/except or something.
Change History (2)
comment:1 by , 14 years ago
| Description: | modified (diff) |
|---|
by , 14 years ago
| Attachment: | 16377.diff added |
|---|
Note:
See TracTickets
for help on using tickets.
Fixed formatting (please use a little bit of wiki syntax and the preview to make your reports readable).