From bc81aec4764938856f9a88624084e8d9b0b81889 Mon Sep 17 00:00:00 2001 From: Peter Date: Fri, 15 May 2020 08:21:00 +0000 Subject: [PATCH] Default Author of Post to current User --- fet2020/posts/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fet2020/posts/forms.py b/fet2020/posts/forms.py index f5d5eb91..d2e4616b 100644 --- a/fet2020/posts/forms.py +++ b/fet2020/posts/forms.py @@ -4,7 +4,7 @@ from ckeditor_uploader.widgets import CKEditorUploadingWidget from .models import Post class MyPostForm(forms.ModelForm): - class Meta: + class Meta: model = Post fields = ['title','subtitle', 'image','body','slug','author']