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

Commit "Serializers part 2" - missing parentheses () #15

Open
paulrogov opened this issue Feb 16, 2022 · 0 comments
Open

Commit "Serializers part 2" - missing parentheses () #15

paulrogov opened this issue Feb 16, 2022 · 0 comments

Comments

@paulrogov
Copy link

views.py file

Current code:

# from line 48
 elif request.method == 'PUT':
    data = JSONParser.parse(request)
    serializer = PostSerializer(post, data=data

Correct code (line 49):

    data = JSONParser().parse(request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant