permit entry without title
This commit is contained in:
parent
eb82ff6ad1
commit
3b0cdf534c
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ def update_static_html():
|
||||||
def submit_entry(entry_id=None, title=None, content=None, date=None):
|
def submit_entry(entry_id=None, title=None, content=None, date=None):
|
||||||
title = title.strip()
|
title = title.strip()
|
||||||
content = content.strip()
|
content = content.strip()
|
||||||
if not all((title, content, date)):
|
if not all((content, date)):
|
||||||
return bobo.redirect(BASE_URL)
|
return bobo.redirect(BASE_URL)
|
||||||
try:
|
try:
|
||||||
date = datetime.datetime.strptime(date, DATE_FORMAT_FULL)
|
date = datetime.datetime.strptime(date, DATE_FORMAT_FULL)
|
||||||
|
|
Loading…
Reference in a new issue