Skip to content

Commit

Permalink
Fix docs code example (encode#7201)
Browse files Browse the repository at this point in the history
  • Loading branch information
samueldg authored and sigvef committed Dec 3, 2022
1 parent 1389aaa commit 23db62f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api-guide/serializers.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ This manager class now more nicely encapsulates that user instances and profile
def create(self, validated_data):
return User.objects.create(
username=validated_data['username'],
email=validated_data['email']
is_premium_member=validated_data['profile']['is_premium_member']
email=validated_data['email'],
is_premium_member=validated_data['profile']['is_premium_member'],
has_support_contract=validated_data['profile']['has_support_contract']
)

Expand Down

0 comments on commit 23db62f

Please sign in to comment.