Bladeren bron

Make Tag optional while pageedit

master
Dirk Alders 2 maanden geleden
bovenliggende
commit
a0401241ef
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      pages/forms.py

+ 1
- 1
pages/forms.py Bestand weergeven

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

Laden…
Annuleren
Opslaan