Tuesday, August 2, 2011

admin - delete_selected problem



In admin.py file i paste:admin.site.disable_action('delete_selected')



And get an error:


KeyError at /

'delete_selected'

Django Version: 1.3 Exception Type: KeyError Exception Value:

'delete_selected'

Exception Location: c:\Python27\lib\site-packages\django-1.3-py2.7.egg\django\contrib\admin\sites.py in disable_action, line 127

Any idea why it occurs? In my previous websites I haven't that error and it is strange for me.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/tduJes9etMUJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment