浏览代码

fix widget name

zhangfisher 12 年之前
父节点
当前提交
7d1b4dbe91
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      DjangoUeditor/widgets.py

+ 1 - 1
DjangoUeditor/widgets.py

@@ -110,7 +110,7 @@ class UEditorWidget(forms.Textarea):
         #传入模板的参数
         editor_id="id_%s" % name.replace("-", "_")
         uSettings={
-            "name": name.replace("-", "_"),
+            "name": name,
             "id": editor_id,
             "value":value
         }