211
+    model_id = models.CharField(_(u'model_id'), max_length=32, blank=True, null=True, help_text=u'型号唯一标识', db_index=True)
212
+    model_name = models.CharField(_(u'model_name'), max_length=255, blank=True, null=True, help_text=u'型号名称')
213
+
214
+    distributor_id = models.CharField(_(u'distributor_id'), max_length=32, blank=True, null=True, help_text=u'经销商唯一标识', db_index=True)
215
+    distributor_name = models.CharField(_(u'distributor_name'), max_length=255, blank=True, null=True, help_text=u'经销商名称')
216
+
217
+    factory_yuan = models.FloatField(_(u'factory_yuan'), default=1000, help_text=u'出厂价(元)')
218
+    factory_fee = models.IntegerField(_(u'factory_fee'), default=100000, help_text=u'出厂价(分)')
219
+
220
+    integral = models.IntegerField(_(u'integral'), default=100, help_text=u'积分')
221
+
222
+    class Meta:
223
+        verbose_name = _(u'型号/代理商价格信息')
224
+        verbose_name_plural = _(u'型号/代理商价格信息')
225
+        unique_together = (
226
+            ('brand_id', 'model_id', 'distributor_id'),
227
+        )
228
+
229
+    def __unicode__(self):
230
+        return unicode(self.pk)
231
+
232
+
174 233
 class LatestAppInfo(BaseModelMixin):
175 234
     latest_adr_version_code = models.IntegerField(_(u'latest_adr_version_code'), default=0, help_text=u'最新安卓版本号')
176 235
     latest_adr_version_name = models.CharField(_(u'latest_adr_version_name'), max_length=16, blank=True, null=True, help_text=u'最新安卓版本名')

+ 1 - 0
requirements.txt

@@ -31,6 +31,7 @@ hiredis==0.2.0
31 31
 isoweek==1.3.3
32 32
 jsonfield==2.0.2
33 33
 mock==2.0.0
34
+monetary==1.0.1
34 35
 pysnippets==1.0.5
35 36
 pywe-jssdk==1.1.0
36 37
 pywe-membercard==1.0.0

kodo - Gogs: Go Git Service

No Description

huangqimin: a5595665af :art: Format Codes 5 years ago
..
__init__.py 7d85bed0b0 move errno_utils.py/response_utils.py into error file 10 years ago
errno_utils.py a5595665af :art: Format Codes 5 years ago