From 099cb8a987d94f5673acd6b31c1b122e00bda5bc Mon Sep 17 00:00:00 2001 From: andis Date: Wed, 2 Sep 2020 19:35:29 +0000 Subject: [PATCH] public_date --- fet2020/posts/forms.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fet2020/posts/forms.py b/fet2020/posts/forms.py index 5f06e7c6..5996bad6 100644 --- a/fet2020/posts/forms.py +++ b/fet2020/posts/forms.py @@ -7,7 +7,7 @@ from .models import Post, Event, News, FetMeeting class MyPostForm(forms.ModelForm): class Meta: model = Post - fields = ['title', 'subtitle', 'tags', 'image', 'body', 'slug', 'author'] + fields = ['title', 'subtitle', 'tags', 'image', 'body', 'slug', 'author','public_date'] widgets = {'body': CKEditorUploadingWidget(config_name='default')} @@ -21,7 +21,7 @@ class MyPostForm(forms.ModelForm): class MyNewsForm(MyPostForm): class Meta: model = News - fields = ['title', 'subtitle', 'tags', 'image', 'body', 'slug', 'author'] + fields = ['title', 'subtitle', 'tags', 'image', 'body', 'slug', 'author','public_date'] widgets = {'body': CKEditorUploadingWidget(config_name='default')} @@ -33,7 +33,7 @@ class MyEventForm(MyPostForm): class Meta: model = Event fields = ['title', 'subtitle', 'tags', 'image', 'body', - 'event_start', 'event_end', 'event_place', 'slug', 'author'] + 'event_start', 'event_end', 'event_place', 'slug', 'author','public_date'] widgets = {'body': CKEditorUploadingWidget(config_name='default')} @@ -50,7 +50,7 @@ class MyEventForm(MyPostForm): class MyFetMeetingForm(MyEventForm): class Meta: model = FetMeeting - fields = ['event_start', 'event_end', 'tags'] + fields = ['event_start', 'event_end', 'tags', 'has_agenda'] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) # to get the self.fields set