Post app & Settings

This commit is contained in:
2020-05-03 18:53:54 +00:00
parent 52623ef98d
commit 88ad66de73
13 changed files with 200 additions and 11 deletions

14
fet2020/posts/forms.py Normal file
View File

@@ -0,0 +1,14 @@
from django import forms
from ckeditor_uploader.widgets import CKEditorUploadingWidget
from .models import Post
class MyPostForm(forms.ModelForm):
class Meta:
model = Post
fields = ['title','subtitle', 'image','body','slug','author']
widgets = {'body': CKEditorUploadingWidget(config_name='default')
}