add pinned news, delete db vlaue 'is_event'
This commit is contained in:
@@ -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')}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user