Code

Changes between Initial Version and Version 1 of Ticket #16377


Ignore:
Timestamp:
07/05/11 13:35:36 (3 years ago)
Author:
aaugustin
Comment:

Fixed formatting (please use a little bit of wiki syntax and the preview to make your reports readable).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16377

    • Property Needs documentation unset
    • Property Needs tests unset
    • Property Patch needs improvement unset
  • Ticket #16377 – Description

    initial v1  
    22https://docs.djangoproject.com/en/1.3/ref/contrib/admin/actions/#conditionally-enabling-or-disabling-actions 
    33 
    4 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.  
     4The 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.