Add src PAIAI_TOURGUIDE

Brightcells 8 anos atrás
pai
commit
ead8d009b7
2 arquivos alterados com 35 adições e 0 exclusões
  1. 29 0
      operation/migrations/0009_auto_20161220_1354.py
  2. 6 0
      operation/models.py

+ 29 - 0
operation/migrations/0009_auto_20161220_1354.py

@@ -0,0 +1,29 @@
1
+# -*- coding: utf-8 -*-
2
+from __future__ import unicode_literals
3
+
4
+from django.db import models, migrations
5
+
6
+
7
+class Migration(migrations.Migration):
8
+
9
+    dependencies = [
10
+        ('operation', '0008_appsettingsinfo'),
11
+    ]
12
+
13
+    operations = [
14
+        migrations.AlterField(
15
+            model_name='feedbackinfo',
16
+            name='src',
17
+            field=models.IntegerField(default=0, help_text='\u7528\u6237\u53cd\u9988\u6765\u6e90', db_index=True, verbose_name='src', choices=[(0, '\u62cd\u7231\u7528\u6237\u7aef'), (1, '\u62cd\u7231\u6444\u5f71\u5e08\u7aef'), (2, '\u62cd\u7231\u5bfc\u6e38\u7aef')]),
18
+        ),
19
+        migrations.AlterField(
20
+            model_name='latestappinfo',
21
+            name='src',
22
+            field=models.IntegerField(default=0, help_text='\u6700\u65b0\u7248\u6765\u6e90', db_index=True, verbose_name='src', choices=[(0, '\u62cd\u7231\u7528\u6237\u7aef'), (1, '\u62cd\u7231\u6444\u5f71\u5e08\u7aef'), (2, '\u62cd\u7231\u5bfc\u6e38\u7aef')]),
23
+        ),
24
+        migrations.AlterField(
25
+            model_name='splashinfo',
26
+            name='src',
27
+            field=models.IntegerField(default=0, help_text='\u542f\u52a8\u9875\u9762\u6765\u6e90', db_index=True, verbose_name='src', choices=[(0, '\u62cd\u7231\u7528\u6237\u7aef'), (1, '\u62cd\u7231\u6444\u5f71\u5e08\u7aef'), (2, '\u62cd\u7231\u5bfc\u6e38\u7aef')]),
28
+        ),
29
+    ]

+ 6 - 0
operation/models.py

@@ -25,10 +25,12 @@ def upload_path(instance, old_filename):
25 25
 class LatestAppInfo(CreateUpdateMixin):
26 26
     PAIAI_USER = 0
27 27
     PAIAI_LENSMAN = 1
28
+    PAIAI_TOURGUIDE = 2
28 29
 
29 30
     SRC = (
30 31
         (PAIAI_USER, u'拍爱用户端'),
31 32
         (PAIAI_LENSMAN, u'拍爱摄影师端'),
33
+        (PAIAI_TOURGUIDE, u'拍爱导游端'),
32 34
     )
33 35
 
34 36
     latest_adr_version_code = models.IntegerField(_(u'latest_adr_version_code'), default=0, help_text=u'最新安卓版本号')
@@ -88,10 +90,12 @@ class APPSettingsInfo(CreateUpdateMixin, PlatformMixin):
88 90
 class SplashInfo(CreateUpdateMixin):
89 91
     PAIAI_USER = 0
90 92
     PAIAI_LENSMAN = 1
93
+    PAIAI_TOURGUIDE = 2
91 94
 
92 95
     SRC = (
93 96
         (PAIAI_USER, u'拍爱用户端'),
94 97
         (PAIAI_LENSMAN, u'拍爱摄影师端'),
98
+        (PAIAI_TOURGUIDE, u'拍爱导游端'),
95 99
     )
96 100
 
97 101
     splash_image = models.ImageField(_(u'splash_image'), upload_to=upload_path, blank=True, null=True, help_text=u'启动页面图片')
@@ -122,10 +126,12 @@ class SplashInfo(CreateUpdateMixin):
122 126
 class FeedbackInfo(CreateUpdateMixin):
123 127
     PAIAI_USER = 0
124 128
     PAIAI_LENSMAN = 1
129
+    PAIAI_TOURGUIDE = 2
125 130
 
126 131
     SRC = (
127 132
         (PAIAI_USER, u'拍爱用户端'),
128 133
         (PAIAI_LENSMAN, u'拍爱摄影师端'),
134
+        (PAIAI_TOURGUIDE, u'拍爱导游端'),
129 135
     )
130 136
 
131 137
     user_id = models.CharField(_(u'user_id'), max_length=255, blank=True, null=True, help_text=u'用户唯一标识')