增加注册镜头时间,

FFIB 4 年之前
父节点
当前提交
76685e12e9
共有 2 个文件被更改,包括 22 次插入0 次删除
  1. 20 0
      account/migrations/0053_userinfo_resgister_at.py
  2. 2 0
      account/models.py

+ 20 - 0
account/migrations/0053_userinfo_resgister_at.py

@@ -0,0 +1,20 @@
1
+# -*- coding: utf-8 -*-
2
+# Generated by Django 1.11.26 on 2020-12-21 07:02
3
+from __future__ import unicode_literals
4
+
5
+from django.db import migrations, models
6
+
7
+
8
+class Migration(migrations.Migration):
9
+
10
+    dependencies = [
11
+        ('account', '0052_auto_20201209_1857'),
12
+    ]
13
+
14
+    operations = [
15
+        migrations.AddField(
16
+            model_name='userinfo',
17
+            name='resgister_at',
18
+            field=models.DateTimeField(blank=True, help_text='\u6ce8\u518c\u955c\u5934\u65f6\u95f4', null=True, verbose_name='resgister_at'),
19
+        ),
20
+    ]

+ 2 - 0
account/models.py

@@ -143,6 +143,8 @@ class UserInfo(BaseModelMixin, LensmanTypeBoolMixin):
143 143
     # 维修员信息
144 144
     is_maintenance = models.BooleanField(_(u'is_maintenance'), default=False, help_text=_(u'是否维修员'))
145 145
 
146
+    resgister_at = models.DateTimeField(_(u'resgister_at'), blank=True, null=True, help_text=_(u'注册镜头时间'))
147
+
146 148
     class Meta:
147 149
         verbose_name = _(u'userinfo')
148 150
         verbose_name_plural = _(u'userinfo')