From e32ffbb12b43cd64d9476e674dc27b140b1e3658 Mon Sep 17 00:00:00 2001 From: Samuel Dion-Girardeau Date: Mon, 24 Feb 2020 19:33:00 -0500 Subject: [PATCH] Fix docs code example (#7201) --- docs/api-guide/serializers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api-guide/serializers.md b/docs/api-guide/serializers.md index 96a0e0222..5cf949f97 100644 --- a/docs/api-guide/serializers.md +++ b/docs/api-guide/serializers.md @@ -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'] )