nl-15 ol-15"> 15
+        verbose_name = _(u'维修点信息')
16
+        verbose_name_plural = _(u'维修点信息')
17
+
18
+    def __unicode__(self):
19
+        return '%d' % self.pk
20
+
21
+
22
+class ExpressCompanyInfo(BaseModelMixin):
23
+    name = models.CharField(_(u'name'), max_length=255, blank=True, null=True, help_text=u'名称')
24
+
25
+    class Meta:
26
+        verbose_name = _(u'快递公司信息')
27
+        verbose_name_plural = _(u'快递公司信息')
28
+
29
+    def __unicode__(self):
30
+        return '%d' % self.pk
31
+
32
+
33
+class MaintenaceInfo(BaseModelMixin):
34
+    name = models.CharField(_(u'name'), max_length=255, blank=True, null=True, help_text=u'姓名')
35
+    phone = models.CharField(_(u'phone'), max_length=11, blank=True, null=True, help_text=u'电话')
36
+    address = models.CharField(_(u'address'), max_length=255, blank=True, null=True, help_text=u'地址')
37
+
38
+    sn = models.CharField(_(u'sn'), max_length=32, blank=True, null=True, help_text=u'序列号', db_index=True)
39
+    desc = models.TextField(_(u'desc'), blank=True, null=True, help_text=u'故障描述')
40
+
41
+    point_id = models.CharField(_(u'point_id'), max_length=32, blank=True, null=True, help_text=u'维修点唯一标识', db_index=True)
42
+    point_name = models.CharField(_(u'point_name'), max_length=255, blank=True, null=True, help_text=u'维修点名称')
43
+
44
+    express_name = models.CharField(_(u'express_name'), max_length=255, blank=True, null=True, help_text=u'快递公司名称')
45
+    tracking_number = models.CharField(_(u'tracking_number'), max_length=255, blank=True, null=True, help_text=u'快递单号')
46
+
47
+    maintenace_status = models.CharField(_(u'maintenace_status'), max_length=8, blank=True, null=True, help_text=u'维修状态')
48
+
49
+    class Meta:
50
+        verbose_name = _(u'维修信息')
51
+        verbose_name_plural = _(u'维修信息')
52
+
53
+    def __unicode__(self):
54
+        return '%d' % self.pk

+ 7 - 0
maintenance/tests.py

@@ -0,0 +1,7 @@
1
+# -*- coding: utf-8 -*-
2
+from __future__ import unicode_literals
3
+
4
+from django.test import TestCase
5
+
6
+
7
+# Create your tests here.

+ 7 - 0
maintenance/views.py

@@ -0,0 +1,7 @@
1
+# -*- coding: utf-8 -*-
2
+from __future__ import unicode_literals
3
+
4
+from django.shortcuts import render
5
+
6
+
7
+# Create your views here.

CompuChina/manual - Gogs: Go Git Service

1 Commits (8e28eca4a7d0fe0bb759bf1c892f5b6ba95af219)

Autor SHA1 Mensaje Fecha
  Brightcells c8aefbedb4 First Commit %!s(int64=9) %!d(string=hace) años