add pinned news, delete db vlaue 'is_event'

This commit is contained in:
2020-09-05 15:19:04 +00:00
parent 9361788d1a
commit 3dc6085396
6 changed files with 101 additions and 93 deletions

View File

@@ -21,7 +21,10 @@ class MyPostForm(forms.ModelForm):
class MyNewsForm(MyPostForm):
class Meta:
model = News
fields = ['title', 'subtitle', 'tags', 'image', 'body', 'slug', 'author', 'public_date']
fields = [
'title', 'subtitle', 'tags', 'image', 'body', 'slug', 'author', 'public_date',
'is_pinned',
]
widgets = {'body': CKEditorUploadingWidget(config_name='default')}