Skip to content

Commit

Permalink
* Make the basecamp api match our internal data model.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgroff committed Jan 24, 2018
1 parent e523d63 commit ced10a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_kala/api/basecamp_classic/people/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Meta:
)

def create(self, validated_data):
companies = validated_data.pop('companies')
organizations = validated_data.pop('organizations')
user = User.objects.create(**validated_data)
user.organizations.add(*companies)
user.organizations.add(*organizations)
return user

0 comments on commit ced10a9

Please sign in to comment.