-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception "'BulkListSerializerObject' is not iterable" when using API browser #33
Comments
Sorry forgot to add versions: Python: 2.7.8 |
This is known issue, even with DRF2. DRF-bulk for some reason was not compatible with the API browser. Ideally this should not happen. It looks like you already went through some debugging so PRs are welcome! |
can confirm: |
confirmed on: |
any update, guys? |
Looks like if you just add this to the object it works fine...
|
@liquidpele which object? if that fixes the issue, do you mind opening a PR? |
Any updates on this issue? django==1.9.9 |
Posting to a BulkModelViewSet using the DRF api browser causes the following exception to be thrown. NB: the data has already been written to the db successfully before the exception happens:
The line of code that throws the exception is in the django template library, and it is doing:
The
values
object is my serializer object:If I just browse to http://127.0.0.1:8000/usage_records/ again, the template renders correctly, with these new records included.
The basic code is:
If I use postman or curl, no error is thrown ... so this does seem to be some bad interaction with the DRF api browser.
Any thoughts on why this happens?
Thanks,
Richard
The text was updated successfully, but these errors were encountered: