소스 검색

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

原来的DjangoUeditor前有一个. 导致south迁移数据失败,已经修正
WeizhongTu 12 년 전
부모
커밋
e614366e5c
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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