e84374d9de44a328d3fR46">46
+        migrations.AddField(
47
+            model_name='staffdeleteclerksalesubmitloginfo',
48
+            name='model_name',
49
+            field=models.CharField(blank=True, db_index=True, help_text='\u578b\u53f7', max_length=32, null=True, verbose_name='model_name'),
50
+        ),
51
+    ]

+ 16 - 1
staff/models.py

@@ -6,7 +6,9 @@ from django_models_ext import BaseModelMixin
6 6
 
7 7
 
8 8
 class StaffDeleteClerkSaleSubmitLogInfo(BaseModelMixin):
9
-    username = models.CharField(_(u'username'), max_length=32, blank=True, null=True, help_text=u'用户名', db_index=True)
9
+    admin_id = models.CharField(_(u'admin_id'), max_length=32, blank=True, null=True, help_text=u'管理员ID', db_index=True)
10
+    log_pk = models.CharField(_(u'log_pk'), max_length=32, blank=True, null=True, help_text=u'销售员提交记录关联pk', db_index=True)
11
+    model_name = models.CharField(_(u'model_name'), max_length=32, blank=True, null=True, help_text=u'型号', db_index=True)
10 12
     code = models.CharField(_(u'code'), max_length=32, blank=True, null=True, help_text=u'机身码', db_index=True)
11 13
 
12 14
     class Meta:
@@ -15,3 +17,16 @@ class StaffDeleteClerkSaleSubmitLogInfo(BaseModelMixin):
15 17
 
16 18
     def __unicode__(self):
17 19
         return '%d' % self.pk
20
+
21
+class StaffDeleteConsumerSubmitLogInfo(BaseModelMixin):
22
+    admin_id = models.CharField(_(u'admin_id'), max_length=32, blank=True, null=True, help_text=u'管理员ID', db_index=True)
23
+    log_pk = models.CharField(_(u'log_pk'), max_length=32, blank=True, null=True, help_text=u'消费者提交记录关联pk', db_index=True)
24
+    model_name = models.CharField(_(u'model_name'), max_length=32, blank=True, null=True, help_text=u'型号', db_index=True)
25
+    code = models.CharField(_(u'code'), max_length=32, blank=True, null=True, help_text=u'机身码', db_index=True)
26
+
27
+    class Meta:
28
+        verbose_name = _(u'StaffDeleteConsumerSubmitLogInfo')
29
+        verbose_name_plural = _(u'StaffDeleteConsumerSubmitLogInfo')
30
+
31
+    def __unicode__(self):
32
+        return '%d' % self.pk

Pai2/pai2 - Gogs: Go Git Service

9 次代码提交 (268aa4ebe3d4f2a8812fc8cd05abd10902763e27)

作者 SHA1 备注 提交日期
  Brightcells d38cc6ceb2 Add multi openid for UserInfo & Change create order support miniapp 9 年之前
  Brightcells 2eba3ed7f9 Add guest login for tourguide 9 年之前
  Brightcells 246a9ff4b8 Change to 'from utils.redis.connect import r' 9 年之前
  Brightcells 0a58248c81 Realize tour guide upload photo when auth in FE 9 年之前
  Brightcells 5a6012dac0 Fix Bug: should not login when not lensman/tourguide 9 年之前
  Brightcells a229908ca3 Return user_info for api tgu_group_user_locations_api 9 年之前
  Brightcells f818f4127f Docstring simplify 9 年之前
  Brightcells f724e0f9c0 Add tour guide apis 9 年之前
  Brightcells 8a213207ea Add tour guide oauth 9 年之前