Fixed small problem with previous commit

remotes/origin/enhancement/email-actions
Jesús Espino 2014-07-30 15:55:34 +02:00
parent c2b43b1fa1
commit 0de2bfa06a
1 changed files with 1 additions and 2 deletions

View File

@ -32,8 +32,7 @@ class UserSerializer(serializers.ModelSerializer):
fields = ('id', 'username', 'full_name', 'full_name_display', 'email',
'github_id', 'color', 'bio', 'default_language',
'default_timezone', 'is_active', 'photo', 'big_photo')
read_only_fields = ('id', 'username', 'full_name_display', 'email',
'github_id', 'big_photo')
read_only_fields = ('id', 'username', 'email', 'github_id')
def get_full_name_display(self, obj):
return obj.get_full_name() if obj else ""