Delete action in changelist view does not work

112 views
Skip to first unread message

Maxime Haineault

unread,
Feb 8, 2011, 9:13:05 AM2/8/11
to django-g...@googlegroups.com
When deleting multiple (or even a single) objects from the object list using the actions bar
I get a KeyError exception that says "objects_name" is not defined

Exception Type: TemplateSyntaxError
Exception Value:
Caught KeyError while rendering: u'objects_name'
In template grappelli/templates/admin/delete_selected_confirmation.html, error at line 32

The offending template line is this one:

<h2>{% blocktrans %}Are you sure you want to delete the selected {{ objects_name }} objects? All of the following objects and their related items will be deleted:{% endblocktrans %}</h2>

The weird thing is that I've checked in the original django template and the code is the same, so I guess this isn't a variable introduced by grappelli.. I don't
think grappelli override this view neither..

Any idea ?

--

  Maxime Haineault
  Consultant Web / Associé

∞ Motion Média 
   http://motion-m.ca
   m...@motion-m.ca
   (450) 747-0862

patrickk

unread,
Feb 8, 2011, 9:15:36 AM2/8/11
to django-g...@googlegroups.com
what django-version are you using? you may need to update ...

regards,
patrick

Maxime Haineault

unread,
Feb 8, 2011, 9:21:16 AM2/8/11
to django-g...@googlegroups.com
1.3 alpha 1 SVN-14875

--

  Maxime Haineault
  Consultant Web / Associé

∞ Motion Média 
   http://motion-m.ca
   m...@motion-m.ca
   (450) 747-0862


2011/2/8 patrickk <sehma...@gmail.com>

Maxime Haineault

unread,
Feb 8, 2011, 9:24:19 AM2/8/11
to django-g...@googlegroups.com
Updating the django repository resolved the problem, thanks

--

  Maxime Haineault
  Consultant Web / Associé

∞ Motion Média 
   http://motion-m.ca
   m...@motion-m.ca
   (450) 747-0862


2011/2/8 Maxime Haineault <hain...@gmail.com>
Reply all
Reply to author
Forward
0 new messages