From 2d6ac20f48b116b6f290b34efcca22950d0b3f27 Mon Sep 17 00:00:00 2001 From: patrick Date: Sun, 13 Jun 2021 21:15:33 +0000 Subject: [PATCH] add fields --- fet2020/intern/forms.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fet2020/intern/forms.py b/fet2020/intern/forms.py index e9761345..bf6b34e1 100644 --- a/fet2020/intern/forms.py +++ b/fet2020/intern/forms.py @@ -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")), }