mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 23:43:22 +00:00
feat: Ajout d'une fonction de dissociation entre un responsable et un
élève
This commit is contained in:
@ -66,7 +66,8 @@ class TeacherSerializer(serializers.ModelSerializer):
|
||||
def create(self, validated_data):
|
||||
specialities_data = validated_data.pop('specialities', None)
|
||||
associated_profile_email = validated_data.pop('associated_profile_email')
|
||||
establishment_id = validated_data.pop('establishment')
|
||||
establishment_id = validated_data.get('establishment')
|
||||
print(f'debug : {validated_data}')
|
||||
role_type = validated_data.pop('role_type')
|
||||
|
||||
profile, created = Profile.objects.get_or_create(
|
||||
|
||||
Reference in New Issue
Block a user