add fields

This commit is contained in:
2021-06-13 21:15:33 +00:00
committed by Patrick Mayr
parent f270f014fe
commit 2d6ac20f48

View File

@@ -14,6 +14,7 @@ class TopicGroupAdminForm(forms.ModelForm):
model = TopicGroup
fields = [
"title",
"slug",
]
@@ -22,6 +23,7 @@ class TopicAdminForm(forms.ModelForm):
model = Topic
fields = [
"title",
"slug",
"archive",
"description",
"topic_group",
@@ -35,6 +37,7 @@ class DocumentationAdminForm(forms.ModelForm):
model = Documentation
fields = [
"title",
"slug",
"placeholder",
"description",
"topic",
@@ -59,6 +62,7 @@ class DocumentForm(forms.ModelForm):
fields = [
"title",
"date",
"documentation",
]
labels = {
@@ -67,7 +71,5 @@ class DocumentForm(forms.ModelForm):
}
widgets = {
"date": DateInput(
format=("%d-%m-%Y"),
)
"date": DateInput(format=("%d-%m-%Y")),
}