Make Tag optional while pageedit
This commit is contained in:
父節點
6a401f322f
當前提交
a0401241ef
@ -6,7 +6,7 @@ from django.forms.utils import ErrorList
|
||||
|
||||
class EditForm(forms.Form): # Note that it is not inheriting from forms.ModelForm
|
||||
page_txt = forms.CharField(max_length=20000, label="Page source text", widget=forms.Textarea(attrs={"rows": "20"}))
|
||||
page_tags = forms.CharField(max_length=20000, label="Tags (words separated by spaces)")
|
||||
page_tags = forms.CharField(max_length=20000, label="Tags (words separated by spaces)", required=False)
|
||||
|
||||
def __init__(self, *args, **kwargs) -> None:
|
||||
page_data = kwargs.pop("page_data")
|
||||
|
載入中…
x
新增問題並參考
Block a user