e nl-45 ol-45"> 201
+                    android:background="@drawable/print_rounded_rect_bg"
202
+                    android:layout_marginTop="8dp"
203
+                    android:layout_marginBottom="8dp"
204
+                    android:paddingLeft="35dp"
205
+                    android:paddingRight="35dp"
206
+                    android:paddingBottom="5dp"
207
+                    android:paddingTop="5dp"/>
208
+
209
+
210
+            </LinearLayout>
211
+
159 212
         </LinearLayout>
213
+
214
+
215
+
216
+
217
+
160 218
     </ScrollView>
161 219
 
162 220
 

+ 3 - 0
app/src/main/res/values/strings.xml

@@ -124,4 +124,7 @@
124 124
     <string name="contact_us">联系我们</string>
125 125
     
126 126
     <string name="about_us">关于我们</string>
127
+
128
+    <string name="box_set_ip">BOX IP设置</string>
129
+
127 130
 </resources>

TextField => CharField · 9ec76d526a - Gogs: Go Git Service

TextField => CharField

Brightcells 8 年 前
親
コミット
9ec76d526a
共有2 個のファイルを変更した、21 個の追加 と 1 個の削除を含む
  1. 20 0
      mch/migrations/0003_auto_20180104_0428.py
  2. 1 1
      mch/models.py

+ 20 - 0
mch/migrations/0003_auto_20180104_0428.py

@@ -0,0 +1,20 @@
1
+# -*- coding: utf-8 -*-
2
+# Generated by Django 1.11.3 on 2018-01-03 20:28
3
+from __future__ import unicode_literals
4
+
5
+from django.db import migrations, models
6
+
7
+
8
+class Migration(migrations.Migration):
9
+
10
+    dependencies = [
11
+        ('mch', '0002_auto_20180104_0414'),
12
+    ]
13
+
14
+    operations = [
15
+        migrations.AlterField(
16
+            model_name='modelimageinfo',
17
+            name='url',
18
+            field=models.CharField(blank=True, help_text='\u94fe\u63a5', max_length=255, null=True, verbose_name='url'),
19
+        ),
20
+    ]

+ 1 - 1
mch/models.py

@@ -69,7 +69,7 @@ class ModelImageInfo(BaseModelMixin):
69 69
     model_id = models.CharField(_(u'model_id'), max_length=32, blank=True, null=True, help_text=u'型号唯一标识', db_index=True)
70 70
 
71 71
     image = models.ImageField(_(u'image'), upload_to=upload_path, blank=True, null=True, help_text=u'图片')
72
-    url = models.TextField(_(u'url'), max_length=255, blank=True, null=True, help_text=u'链接')
72
+    url = models.CharField(_(u'url'), max_length=255, blank=True, null=True, help_text=u'链接')
73 73
 
74 74
     position = models.IntegerField(_(u'position'), default=1, help_text=u'排序')
75 75