Permalink
Browse files

Fix incorrect status on quick-blog form. Closes #429.

  • Loading branch information...
1 parent 009ad60 commit 82a1f1131c454df691668c440fd8ba056a0fed01 @stephenmcd committed Oct 11, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 mezzanine/blog/forms.py
@@ -2,6 +2,7 @@
from django import forms
from mezzanine.blog.models import BlogPost
+from mezzanine.core.models import CONTENT_STATUS_DRAFT
# These fields need to be in the form, hidden, with default values,
@@ -25,6 +26,7 @@ def __init__(self):
initial = {}
for field in hidden_field_defaults:
initial[field] = BlogPost._meta.get_field(field).default
+ initial["status"] = CONTENT_STATUS_DRAFT
super(BlogPostForm, self).__init__(initial=initial)
for field in hidden_field_defaults:
self.fields[field].widget = forms.HiddenInput()

0 comments on commit 82a1f11

Please sign in to comment.