diff --git a/apps/users/models/user.py b/apps/users/models/user.py index fc40ee87a..660b5f350 100644 --- a/apps/users/models/user.py +++ b/apps/users/models/user.py @@ -204,7 +204,7 @@ class User(AbstractUser): 'wechat': self.wechat, 'phone': self.phone, 'comment': self.comment, - 'date_expired': self.date_expired.strftime('%Y-%m-%d %H:%M:%S') + 'date_expired': self.date_expired.strftime('%Y-%m-%d %H:%M:%S') if self.date_expired is not None else None }) @classmethod diff --git a/apps/users/templates/users/user_profile.html b/apps/users/templates/users/user_profile.html index 93a14ef86..c57eeb611 100644 --- a/apps/users/templates/users/user_profile.html +++ b/apps/users/templates/users/user_profile.html @@ -22,7 +22,7 @@
-
+
{{ user.name }}