Skip to content

Commit

Permalink
EmailField na Profile zmeneny na redonly
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe committed Nov 23, 2024
1 parent a0392ec commit ba7b777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion personal/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class ProfileSerializer(serializers.ModelSerializer):
is_student = serializers.SerializerMethodField('get_is_student')
has_school = serializers.SerializerMethodField('get_has_school')
school_id = serializers.IntegerField()
email = serializers.EmailField(source='user.email')
email = serializers.EmailField(source='user.email', read_only=True)
verbose_name = serializers.SerializerMethodField('get_verbose_name')

class Meta:
Expand Down

0 comments on commit ba7b777

Please sign in to comment.