Forráskód Böngészése

更正不能用south迁移数据的问题

原来的DjangoUeditor前有一个. 导致south迁移数据失败,已经修正
WeizhongTu 12 éve
szülő
commit
e614366e5c
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      DjangoUeditor/models.py

+ 3 - 3
DjangoUeditor/models.py

@@ -32,7 +32,7 @@ class UEditorField(models.TextField):
 
 #以下支持south
 try:
-    from south.modelsinspector import add_ignored_fields,add_introspection_rules
-    add_introspection_rules([], [r"^.DjangoUeditor\.models\.UEditorField"])
+    from south.modelsinspector import add_introspection_rules
+    add_introspection_rules([], ["^DjangoUeditor\.models\.UEditorField"])
 except:
-    pass
+    pass