:bug: Fix ValueError: Found wrong number (0) of constraints for

huangqimin %!s(int64=6) %!d(string=hace) años
padre
commit
19b106d08f
Se han modificado 2 ficheros con 8 adiciones y 8 borrados
  1. 4 4
      mch/migrations/0021_auto_20180522_1100.py
  2. 4 4
      mch/migrations/0041_auto_20190812_1429.py

+ 4 - 4
mch/migrations/0021_auto_20180522_1100.py

@@ -22,8 +22,8 @@ class Migration(migrations.Migration):
22 22
             name='unionid',
23 23
             field=models.CharField(blank=True, db_index=True, help_text='\u5fae\u4fe1 UnionID', max_length=32, null=True, verbose_name='unionid'),
24 24
         ),
25
-        migrations.AlterUniqueTogether(
26
-            name='saleclerkinfo',
27
-            unique_together=set([('unionid', 'brand_id')]),
28
-        ),
25
+        # migrations.AlterUniqueTogether(
26
+        #     name='saleclerkinfo',
27
+        #     unique_together=set([('unionid', 'brand_id')]),
28
+        # ),
29 29
     ]

+ 4 - 4
mch/migrations/0041_auto_20190812_1429.py

@@ -27,8 +27,8 @@ class Migration(migrations.Migration):
27 27
             name='sex',
28 28
             field=models.IntegerField(choices=[(0, '\u672a\u77e5'), (1, '\u7537'), (2, '\u5973')], db_index=True, default=0, help_text='Sex', verbose_name='sex'),
29 29
         ),
30
-        migrations.AlterUniqueTogether(
31
-            name='saleclerkinfo',
32
-            unique_together=set([('brand_id', 'unionid'), ('brand_id', 'user_id')]),
33
-        ),
30
+        # migrations.AlterUniqueTogether(
31
+        #     name='saleclerkinfo',
32
+        #     unique_together=set([('unionid', 'brand_id'), ('brand_id', 'user_id')]),
33
+        # ),
34 34
     ]