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