Skip to content
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

All browsable api form POSTs failing with "This field is required", even if data is provided #3588

Closed
jonathan-golorry opened this issue Nov 3, 2015 · 5 comments
Labels
Milestone

Comments

@jonathan-golorry
Copy link

I have djangorestframework 3.2.4 and django 1.8.5 installed globally and everything is working fine from that environment.

If I create an environment with djangorestframework 3.3.0 and django 1.8.5, the exact same project with the same local db works until I try to post a form from the browsable api. The POST fails with "This field is required", even if there was data. All I've tested so far is POSTing from the HTML form, but this occurs even in the most basic tutorial.

@alexander-ae
Copy link

I have djangorestframework 3.3.0 and django 1.9b1

same problem here

@xordoquy
Copy link
Collaborator

xordoquy commented Nov 4, 2015

Isn't this related to #3578 ?

@xordoquy
Copy link
Collaborator

xordoquy commented Nov 4, 2015

I need more informations to reproduce, I gave 3.3.0 a go with browsable API and it works here (tm).
Could you can with a simplest basic failing example or test case ?

@xordoquy
Copy link
Collaborator

xordoquy commented Nov 4, 2015

OK, I could reproduce it with an authenticated user.
Without authentication it would just work fine.

@tomchristie tomchristie added this to the 3.3.1 Release milestone Nov 4, 2015
@tomchristie tomchristie added the Bug label Nov 4, 2015
@xordoquy
Copy link
Collaborator

xordoquy commented Nov 4, 2015

Closing this as duplicate of #3574
Tests are showing the serializer.data is an empty dict.

Edit: duplicate of #3574

@xordoquy xordoquy closed this as completed Nov 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants