make master pep8-ready again
This commit is contained in:
@@ -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','public_date']
|
||||
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','public_date']
|
||||
fields = ['title', 'subtitle', 'tags', 'image', 'body', 'slug', 'author', 'public_date']
|
||||
|
||||
widgets = {'body': CKEditorUploadingWidget(config_name='default')}
|
||||
|
||||
@@ -32,8 +32,10 @@ class MyNewsForm(MyPostForm):
|
||||
class MyEventForm(MyPostForm):
|
||||
class Meta:
|
||||
model = Event
|
||||
fields = ['title', 'subtitle', 'tags', 'image', 'body',
|
||||
'event_start', 'event_end', 'event_place', 'slug', 'author','public_date']
|
||||
fields = [
|
||||
'title', 'subtitle', 'tags', 'image', 'body', 'event_start', 'event_end',
|
||||
'event_place', 'slug', 'author', 'public_date',
|
||||
]
|
||||
|
||||
widgets = {'body': CKEditorUploadingWidget(config_name='default')}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user