no functional changes:
update format
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
from django import forms
|
||||
from ckeditor_uploader.widgets import CKEditorUploadingWidget
|
||||
from django import forms
|
||||
|
||||
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']
|
||||
|
||||
widgets = {'body': CKEditorUploadingWidget(config_name='default')}
|
||||
|
||||
@@ -19,8 +20,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']
|
||||
|
||||
widgets = {'body': CKEditorUploadingWidget(config_name='default')}
|
||||
|
||||
@@ -30,8 +30,8 @@ class MyNewsForm(MyPostForm):
|
||||
class MyEventForm(MyPostForm):
|
||||
class Meta:
|
||||
model = Event
|
||||
fields = ['title','subtitle','tags', 'image','body',
|
||||
'event_start','event_end', 'event_place','slug','author']
|
||||
fields = ['title', 'subtitle', 'tags', 'image', 'body',
|
||||
'event_start', 'event_end', 'event_place', 'slug', 'author']
|
||||
|
||||
widgets = {'body': CKEditorUploadingWidget(config_name='default')}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user