Skip to content

Commit

Permalink
Merge pull request #174 from NTIA/fix_user_endpoint
Browse files Browse the repository at this point in the history
Fixed user serializer date_joined and last_login
  • Loading branch information
dboulware committed Feb 24, 2020
2 parents 74848a6 + d8ec876 commit 140e988
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/authentication/serializers.py
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 140e988

Please sign in to comment.