|
|
|
|
6
|
|
6
|
|
7
|
class EditForm(forms.Form): # Note that it is not inheriting from forms.ModelForm
|
7
|
class EditForm(forms.Form): # Note that it is not inheriting from forms.ModelForm
|
8
|
page_txt = forms.CharField(max_length=20000, label="Page source text", widget=forms.Textarea(attrs={"rows": "20"}))
|
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
|
def __init__(self, *args, **kwargs) -> None:
|
11
|
def __init__(self, *args, **kwargs) -> None:
|
12
|
page_data = kwargs.pop("page_data")
|
12
|
page_data = kwargs.pop("page_data")
|