Przeglądaj źródła

fix widget name

zhangfisher 12 lat temu
rodzic
commit
7d1b4dbe91
1 zmienionych plików z 1 dodań i 1 usunięć
  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
         }