瀏覽代碼

Make Tag optional while pageedit

master
Dirk Alders 2 月之前
父節點
當前提交
a0401241ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      pages/forms.py

+ 1
- 1
pages/forms.py 查看文件

@@ -6,7 +6,7 @@ from django.forms.utils import ErrorList
6 6
 
7 7
 class EditForm(forms.Form):  # Note that it is not inheriting from forms.ModelForm
8 8
     page_txt = forms.CharField(max_length=20000, label="Page source text", widget=forms.Textarea(attrs={"rows": "20"}))
9
-    page_tags = forms.CharField(max_length=20000, label="Tags (words separated by spaces)")
9
+    page_tags = forms.CharField(max_length=20000, label="Tags (words separated by spaces)", required=False)
10 10
 
11 11
     def __init__(self, *args, **kwargs) -> None:
12 12
         page_data = kwargs.pop("page_data")

Loading…
取消
儲存