From d8ec8768c3def34a83163a962df8519b6a4417b6 Mon Sep 17 00:00:00 2001 From: Justin Haze Date: Mon, 24 Feb 2020 11:29:11 -0700 Subject: [PATCH] Fixed user serializer date_joined and last_login --- src/authentication/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/authentication/serializers.py b/src/authentication/serializers.py index 33f44943..a5e0efc4 100644 --- a/src/authentication/serializers.py +++ b/src/authentication/serializers.py @@ -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