burke-software / django-mass-edit

Make bulk changes in the Django admin interface
152 stars 67 forks source link

Handle custom form fields #42

Open aklos opened 9 years ago

aklos commented 9 years ago

Hi, Currently an object form is fetched using self.get_form(request, obj) but this results in field errors when you have custom fields which aren't defined in the model. I've been getting around this issue by replacing get_form() with admin_site._registry[model].form but I'm not sure if it's safe.

bufke commented 9 years ago

I can't commit time here, but if you can I'd accept a pull request. Honestly this is a very old project that I copied from a blog and modernized a little bit. The entire code base could probably be done better and allow for more edge cases.