default False

Kimi.Huang 5 年之前
父节点
当前提交
9db41fee66
共有 2 个文件被更改,包括 21 次插入1 次删除
  1. 20 0
      mch/migrations/0038_auto_20190826_1625.py
  2. 1 1
      mch/models.py

+ 20 - 0
mch/migrations/0038_auto_20190826_1625.py

@@ -0,0 +1,20 @@
1
+# -*- coding: utf-8 -*-
2
+# Generated by Django 1.11.23 on 2019-08-26 08:25
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', '0037_auto_20190826_1537'),
12
+    ]
13
+
14
+    operations = [
15
+        migrations.AlterField(
16
+            model_name='modelinfo',
17
+            name='is_important',
18
+            field=models.BooleanField(db_index=True, default=False, help_text='\u662f\u5426\u91cd\u8981\u578b\u53f7', verbose_name='is_important'),
19
+        ),
20
+    ]

+ 1 - 1
mch/models.py

@@ -159,7 +159,7 @@ class ModelInfo(BaseModelMixin):
159 159
 
160 160
     display = models.BooleanField(_(u'display'), default=True, help_text=_(u'Display'), db_index=True)
161 161
 
162
-    is_important = models.BooleanField(_(u'is_important'), default=True, help_text=_(u'是否重要型号'), db_index=True)
162
+    is_important = models.BooleanField(_(u'is_important'), default=False, help_text=_(u'是否重要型号'), db_index=True)
163 163
 
164 164
     class Meta:
165 165
         verbose_name = _(u'型号信息')