From a0401241eff961f3a4f509e04df3487c452b4c1b Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Fri, 11 Oct 2024 19:21:03 +0200 Subject: [PATCH] Make Tag optional while pageedit --- pages/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/forms.py b/pages/forms.py index 2b87d65..4d2410f 100644 --- a/pages/forms.py +++ b/pages/forms.py @@ -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")