Created
August 7, 2019 17:12
-
-
Save akshar-raaj/1a1ca698c88d4f433d111ecb9570e467 to your computer and use it in GitHub Desktop.
UserSerializer create
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def create(self, validated_data): | |
| return User.objects.create_superuser(**validated_data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment