You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
pokercc/news/forms.py

11 lines
481 B

from django import forms
from .choices import *
class PostForm(forms.Form):
title = forms.CharField(label='Title', max_length=200)
body = forms.CharField(label='Optional text', max_length=10000)
url = forms.CharField(label='URL', max_length=200)
# date = forms.DateTimeField('date published')
# state = forms.IntegerField(label='State', default=1)
style = forms.ChoiceField(label='Style',choices=STYLE_CHOICES, required=True)
image = forms.FileField()