Skip to content

Commit

Permalink
Merge 9cc238e into d93c39f
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipotieno committed May 6, 2019
2 parents d93c39f + 9cc238e commit 654b615
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion authors/apps/profiles/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ class UserListSerializer(serializers.ModelSerializer):
"""
Serializer class for getting user profile
"""
username = serializers.ReadOnlyField(source='fetch_username')
created_at = serializers.DateTimeField(format="%Y-%m-%d %H:%M:%S")
updated_at = serializers.DateTimeField(format="%Y-%m-%d %H:%M:%S")
class Meta:
model = Profile
fields = '__all__'
exclude = ('user', 'id', )

0 comments on commit 654b615

Please sign in to comment.