burke-software / django-mass-edit

Make bulk changes in the Django admin interface
155 stars 68 forks source link

KeyError with excluded fields #17

Closed rfc791 closed 10 years ago

rfc791 commented 11 years ago

When I set the massadmin_exclude on some fields I get a issue with rendering the template.

Django Version: 1.5.4
Exception Type: KeyError
Exception Value:    u"Key 'slug' not found in Form"

build\bdist.win32\egg\massadmin\massadmin.py in mass_change_view
    return ma.mass_change_view(request, object_ids) ...

build\bdist.win32\egg\massadmin\massadmin.py in mass_change_view
    adminForm = helpers.AdminForm(form, self.get_fieldsets(request, obj),                    
    self.prepopulated_fields, self.get_readonly_fields(request, obj))