|
|
@@ -116,6 +116,16 @@ class MchSearchModelAndCameraLogInfo(BaseModelMixin):
|
116
|
116
|
|
117
|
117
|
|
118
|
118
|
class ComplementCodeLogInfo(BaseModelMixin):
|
|
119
|
+ AUDIT_TODO = 0
|
|
120
|
+ AUDIT_REFUSED = -1
|
|
121
|
+ AUDIT_PASS = 1
|
|
122
|
+
|
|
123
|
+ AUDIT_STATUS_TUPLE = (
|
|
124
|
+ (AUDIT_TODO, u'待审核'),
|
|
125
|
+ (AUDIT_REFUSED, u'审核不通过'),
|
|
126
|
+ (AUDIT_PASS, u'审核通过'),
|
|
127
|
+ )
|
|
128
|
+
|
119
|
129
|
user_id = models.CharField(_(u'user_id'), max_length=32, blank=True, null=True, help_text=u'用户唯一标识', db_index=True)
|
120
|
130
|
|
121
|
131
|
log_id = ShortUUIDField(_(u'log_id'), max_length=32, help_text=u'日志唯一标识', db_index=True)
|
|
|
@@ -131,6 +141,8 @@ class ComplementCodeLogInfo(BaseModelMixin):
|
131
|
141
|
shot_image = models.ImageField(_(u'shot_image'), upload_to=upload_path, blank=True, null=True, help_text=u'镜头机身照片')
|
132
|
142
|
invoice_image = models.ImageField(_(u'invoice_image'), upload_to=upload_path, blank=True, null=True, help_text=u'购买凭证照片')
|
133
|
143
|
|
|
144
|
+ audit_status = models.IntegerField(_(u'audit_status'), choices=AUDIT_STATUS_TUPLE, default=AUDIT_TODO, help_text=u'审核状态')
|
|
145
|
+
|
134
|
146
|
class Meta:
|
135
|
147
|
verbose_name = _(u'补码记录')
|
136
|
148
|
verbose_name_plural = _(u'补码记录')
|