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',
|
fields = ('id', 'username', 'full_name', 'full_name_display', 'email',
|
||||||
'github_id', 'color', 'bio', 'default_language',
|
'github_id', 'color', 'bio', 'default_language',
|
||||||
'default_timezone', 'is_active', 'photo', 'big_photo')
|
'default_timezone', 'is_active', 'photo', 'big_photo')
|
||||||
read_only_fields = ('id', 'username', 'full_name_display', 'email',
|
read_only_fields = ('id', 'username', 'email', 'github_id')
|
||||||
'github_id', 'big_photo')
|
|
||||||
|
|
||||||
def get_full_name_display(self, obj):
|
def get_full_name_display(self, obj):
|
||||||
return obj.get_full_name() if obj else ""
|
return obj.get_full_name() if obj else ""
|
||||||
|
|
Loading…
Reference in New Issue