mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 17:16:34 +03:00
Merge pull request #54 from vesterbaek/readonly_email
Mark email as read only for user details
This commit is contained in:
commit
b2316f7de7
|
@ -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