|
|
|
@ -13,7 +13,7 @@ class PostForm(forms.Form): |
|
|
|
title = forms.CharField(label='Title (required for slug/SEO)', max_length=200, required=True) |
|
|
|
title = forms.CharField(label='Title (required for slug/SEO)', max_length=200, required=True) |
|
|
|
url = forms.CharField(label='URL', max_length=200, required=False) |
|
|
|
url = forms.CharField(label='URL', max_length=200, required=False) |
|
|
|
|
|
|
|
|
|
|
|
body = forms.CharField(label='Optional body', max_length=10000, required=False) |
|
|
|
body = forms.CharField(label='Body (optional)', max_length=10000, required=False) |
|
|
|
|
|
|
|
|
|
|
|
today = datetime.today() # + datetime.timedelta(days=1) |
|
|
|
today = datetime.today() # + datetime.timedelta(days=1) |
|
|
|
today_formatted = today.strftime("%Y-%m-%d %H:%M:%S") |
|
|
|
today_formatted = today.strftime("%Y-%m-%d %H:%M:%S") |
|
|
|
|