Added comment

This commit is contained in:
2016-01-25 07:58:55 +01:00
parent a0f30729c5
commit 18d235ca31

View File

@@ -448,6 +448,8 @@ def newBlogpost(request):
# check whether it's valid:
if form.is_valid():
# process the data
# fix me
# What to to, if subject is empty?
data = form.cleaned_data
slug = slugify(data['title'])
p = Post(author_id=request.user.id, slug=slug, title=data['title'], content=data['content'])