burke-software / django-mass-edit

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

Mass edit error #5

Closed gamesbook closed 11 years ago

gamesbook commented 11 years ago

Trying to make changes to boolean fields on a model; how I can debug/fix this:

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/views/decorators.py" in _checklogin
  16.             return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django_mass_edit-1.4-py2.7.egg/massadmin/massadmin.py" in mass_change_view
  65.     return ma.mass_change_view(request, object_ids)
File "/usr/local/lib/python2.7/dist-packages/django_mass_edit-1.4-py2.7.egg/massadmin/massadmin.py" in mass_change_view
  193.                         raise Exception('Some of the selected objects could\'t be changed.')

Exception Type: Exception at /admin/foos/foo-masschange/2935,2937/
Exception Value: Some of the selected objects could't be changed.
bufke commented 11 years ago

Can your provide any more info? I am able to change boolean fields.

Can you copy the field from models.py? Maybe there is some thing different about it than mine.

gamesbook commented 11 years ago

You have the full error trace... not sure what other information you need?

The field is as follows:

selected = BooleanField(default=False)

If you can tell me what conditions could give rise to the reported error, I can look further on my side.

bufke commented 11 years ago

Can't reproduce sorry.

gamesbook commented 11 years ago

Hi David - so no feedback at all on the questions I asked? Perhaps a way for me to debug it - you know your code best... I am just asking that, given the error trace I posted, where I should start looking for the source of the error that I encountered. Thanks.

gamesbook commented 10 years ago

David? Are you still active here? We still have this same issue & I was wondering if you could respond to my comments. Thanks!

bufke commented 10 years ago

Hello @gamesbook I am still active. I'm afraid we don't have the resources to help you. I'm not able to reproduce the problem. We can do paid consulting if you'd like. If you can help us reproduce the issue we could possibly fix it. If you are able to fix it yourself I'd be happy to accept the pull request.