mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-25 18:43:44 +03:00
Mark email as read only for user details
This commit is contained in:
parent
200dad30fb
commit
846040259a
|
@ -46,6 +46,7 @@ class UserDetailsSerializer(serializers.ModelSerializer):
|
|||
class Meta:
|
||||
model = get_user_model()
|
||||
fields = ('username', 'email', 'first_name', 'last_name')
|
||||
read_only_fields = ('email', )
|
||||
|
||||
|
||||
class PasswordResetSerializer(serializers.Serializer):
|
||||
|
|
Loading…
Reference in New Issue
Block a user