Fixed small problem with previous commit
parent
c2b43b1fa1
commit
0de2bfa06a
|
@ -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 ""
|
||||
|
|
Loading…
Reference in New Issue