From 907f0068dba78a4e52f4acd3952532d872eb18c5 Mon Sep 17 00:00:00 2001 From: Bai Date: Wed, 3 Jun 2020 20:21:28 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7?= =?UTF-8?q?profile=E5=BA=8F=E5=88=97=E7=B1=BB2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/users/serializers/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/users/serializers/user.py b/apps/users/serializers/user.py index 4d7a8da4d..e33b4324a 100644 --- a/apps/users/serializers/user.py +++ b/apps/users/serializers/user.py @@ -217,7 +217,7 @@ class UserProfileSerializer(UserSerializer): 'name': {'read_only': True, 'max_length': 128}, 'username': {'read_only': True, 'max_length': 128}, 'email': {'read_only': True}, - # 'mfa_level': {'read_only': True}, + 'is_first_login': {'label': _('Is first login'), 'read_only': False}, 'source': {'read_only': True}, 'is_valid': {'read_only': True}, 'is_active': {'read_only': True}, -- GitLab