Make Tag optional while pageedit

Esse commit está contido em:
Dirk Alders 2024-10-11 19:21:03 +02:00
commit a0401241ef

Ver arquivo

@ -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")