Skip to content

Commit

Permalink
Fixed user serializer date_joined and last_login
Browse files Browse the repository at this point in the history
  • Loading branch information
jhazentia committed Feb 24, 2020
1 parent 74848a6 commit d8ec876
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/authentication/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class UserProfileSerializer(serializers.HyperlinkedModelSerializer):
schedule_entries = serializers.SerializerMethodField(
help_text="The list of schedule entries owned by the user"
)
date_joined = ISOMillisecondDateTimeFormatField()
last_login = ISOMillisecondDateTimeFormatField()
date_joined = ISOMillisecondDateTimeFormatField(read_only=True)
last_login = ISOMillisecondDateTimeFormatField(read_only=True)

class Meta:
model = User
Expand Down

0 comments on commit d8ec876

Please sign in to comment.