mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
Fix docs code example (#7201)
This commit is contained in:
parent
764dabd29e
commit
e32ffbb12b
|
@ -382,8 +382,8 @@ This manager class now more nicely encapsulates that user instances and profile
|
||||||
def create(self, validated_data):
|
def create(self, validated_data):
|
||||||
return User.objects.create(
|
return User.objects.create(
|
||||||
username=validated_data['username'],
|
username=validated_data['username'],
|
||||||
email=validated_data['email']
|
email=validated_data['email'],
|
||||||
is_premium_member=validated_data['profile']['is_premium_member']
|
is_premium_member=validated_data['profile']['is_premium_member'],
|
||||||
has_support_contract=validated_data['profile']['has_support_contract']
|
has_support_contract=validated_data['profile']['has_support_contract']
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user