Merge pull request #54 from vesterbaek/readonly_email

Mark email as read only for user details
This commit is contained in:
Mateusz Sikora 2015-02-25 17:38:07 +01:00
commit b2316f7de7

View File

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