feat: 调整

This commit is contained in:
Czw996 2022-05-14 23:05:55 +08:00
parent 2d15f4c9e6
commit eb6436ec76

View file

@ -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)