django-rest-framework-bulk
django-rest-framework-bulk copied to clipboard
Fix BulkListSerializerObject is not iterable thing
Fix for https://github.com/miki725/django-rest-framework-bulk/issues/33 by making the object iterable even though it doesn't actually iterate over anything. Everything seems to work still. Kind of hacky, but better than nasty 500 errors.
@liquidpele thanks. I wonder if this can have any negative side-effects.
also build failed
No idea, seemed to work for me though. I don't have time to play with it more though, sorry.
I am currently swamped at work however will try to take a look at this next week.
Just an FYI you might want to fix this a better way. I ended up implementing my own multi functionality in a viewset instead of the serializer, so I won't have the ability to help out. As a hint, I noticed I got the same error in my own implementation when I passed an object to the serializer (instead of a list) when I had many=True set for the serializer's definition. Hope that leads you to figuring it out... Cheers!