Skip to content

Commit

Permalink
Merge pull request #21 from UNFPAInnovation/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
codephillip authored Sep 6, 2020
2 parents df329dc + 6a0b043 commit 6252749
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ def create(self, validated_data):
user = User(
first_name=validated_data['first_name'],
last_name=validated_data['last_name'],
# username is a combination of first and last name
username=validated_data['first_name'] + validated_data['last_name'],
username=validated_data['username'],
email=validated_data['email'],
phone=validated_data['phone'],
)
Expand Down

0 comments on commit 6252749

Please sign in to comment.