|
|
|
@ -10,7 +10,7 @@ from datetime import datetime, date, time, timedelta |
|
|
|
class PostForm(forms.Form): |
|
|
|
class PostForm(forms.Form): |
|
|
|
style = forms.ChoiceField(label='Style',choices=STYLE_CHOICES, required=True) |
|
|
|
style = forms.ChoiceField(label='Style',choices=STYLE_CHOICES, required=True) |
|
|
|
|
|
|
|
|
|
|
|
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=500, 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='Body (optional)', max_length=10000, required=False) |
|
|
|
body = forms.CharField(label='Body (optional)', max_length=10000, required=False) |
|
|
|
|