update MaintenaceInfo model_id

FFIB 3 anos atrás
pai
commit
35b83f7919
2 arquivos alterados com 21 adições e 1 exclusões
  1. 20 0
      maintenance/migrations/0005_auto_20210916_1827.py
  2. 1 1
      maintenance/models.py

+ 20 - 0
maintenance/migrations/0005_auto_20210916_1827.py

@@ -0,0 +1,20 @@
1
+# -*- coding: utf-8 -*-
2
+# Generated by Django 1.11.26 on 2021-09-16 10:27
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
+        ('maintenance', '0004_auto_20210916_1822'),
12
+    ]
13
+
14
+    operations = [
15
+        migrations.AlterField(
16
+            model_name='maintenaceinfo',
17
+            name='model_id',
18
+            field=models.CharField(blank=True, db_index=True, help_text='\u578b\u53f7\u552f\u4e00\u6807\u8bc6', max_length=32, null=True, verbose_name='model_id'),
19
+        ),
20
+    ]

+ 1 - 1
maintenance/models.py

@@ -58,7 +58,7 @@ class MaintenaceInfo(BaseModelMixin):
58 58
     address = models.CharField(_(u'address'), max_length=255, blank=True, null=True, help_text=u'地址')
59 59
 
60 60
     log_id = models.CharField(_(u'log_id'), max_length=255, blank=True, null=True, help_text=u'用户提交列表的唯一标识')
61
-    model_id = models.CharField(_(u'user_id'), max_length=32, blank=True, null=True, help_text=u'型号唯一标识', db_index=True)
61
+    model_id = models.CharField(_(u'model_id'), max_length=32, blank=True, null=True, help_text=u'型号唯一标识', db_index=True)
62 62
     sn = models.CharField(_(u'sn'), max_length=32, blank=True, null=True, help_text=u'序列号', db_index=True)
63 63
     desc = models.TextField(_(u'desc'), blank=True, null=True, help_text=u'故障描述')
64 64