Skip to content

Add .validated_data in tutorial part 1. #2214

@lovelydinosaur

Description

@lovelydinosaur

We should add .validated_data here. Opening the issue as I've not had time to check what it would return, but wanted to make sure we track this...

serializer = SnippetSerializer(data=data)
serializer.is_valid()
# True
serializer.save()
# <Snippet: Snippet object>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions