rel="diff-9af72b7e156d2dc7090c1bae9f580a338c3a32c5L6">6
from TimeConvert import TimeConvert as tc
from group.models import GroupPhotoInfo
-from pai2.basemodels import CreateUpdateMixin
-class OrderInfo(CreateUpdateMixin):
+class OrderInfo(BaseModelMixin):
NOMARK = 0
ORIGIN = 1
@@ -2,12 +2,12 @@ |
||
2 | 2 |
|
3 | 3 |
from django.db import models |
4 | 4 |
from django.utils.translation import ugettext_lazy as _ |
5 |
+from models_ext import BaseModelMixin |
|
5 | 6 |
|
6 |
-from pai2.basemodels import CreateUpdateMixin |
|
7 | 7 |
from utils.qiniucdn import qiniu_file_url |
8 | 8 |
|
9 | 9 |
|
10 |
-class UUIDInfo(CreateUpdateMixin): |
|
10 |
+class UUIDInfo(BaseModelMixin): |
|
11 | 11 |
uuid = models.CharField(_(u'uuid'), max_length=22, blank=True, null=True, help_text=u'唯一标识', db_index=True, unique=True) |
12 | 12 |
lensman_id = models.CharField(_(u'lensman_id'), max_length=255, blank=True, null=True, help_text=u'摄影师唯一标识', db_index=True) |
13 | 13 |
|
@@ -27,7 +27,7 @@ class UUIDInfo(CreateUpdateMixin): |
||
27 | 27 |
} |
28 | 28 |
|
29 | 29 |
|
30 |
-class PhotoUUIDInfo(CreateUpdateMixin): |
|
30 |
+class PhotoUUIDInfo(BaseModelMixin): |
|
31 | 31 |
photo_md5 = models.CharField(_(u'photo_md5'), max_length=255, blank=True, null=True, help_text=u'照片唯一标识', db_index=True, unique=True) |
32 | 32 |
|
33 | 33 |
photo_path = models.CharField(_(u'photo_path'), max_length=255, blank=True, null=True, help_text=u'照片路径') |
@@ -54,7 +54,7 @@ class PhotoUUIDInfo(CreateUpdateMixin): |
||
54 | 54 |
return u'{0.pk}'.format(self) |
55 | 55 |
|
56 | 56 |
|
57 |
-class PhotosInfo(CreateUpdateMixin): |
|
57 |
+class PhotosInfo(BaseModelMixin): |
|
58 | 58 |
lensman_id = models.CharField(_(u'lensman_id'), max_length=255, blank=True, null=True, help_text=u'摄影师唯一标识', db_index=True) |
59 | 59 |
session_id = models.CharField(_(u'session_id'), max_length=255, blank=True, null=True, help_text=u'照片组唯一标识', db_index=True) |
60 | 60 |
photo_id = models.CharField(_(u'photo_id'), max_length=255, blank=True, null=True, help_text=u'照片唯一标识', db_index=True) |