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