mirror of
https://github.com/himool/HimoolERP.git
synced 2024-11-10 17:05:03 +08:00
feat: 调整
This commit is contained in:
parent
2d15f4c9e6
commit
eb6436ec76
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class TeamCreateSerializer(ModelSerializer):
|
|||
password = validated_data.pop('password')
|
||||
password = make_password(password)
|
||||
name = validated_data.pop('name')
|
||||
|
||||
print(validated_data)
|
||||
team = super().create(validated_data)
|
||||
User.objects.create(username=username, password=password, name=name, is_manager=True, team=team)
|
||||
|
||||
|
|
Loading…
Reference in a new issue