Commit 78c15ad1 authored by Christophe Siraut's avatar Christophe Siraut
Browse files

Fix: sequence item 0 expected string.

parent e6987e5f
from django import forms
from models import Poll, Choice, Bulletin, Vote
from django.utils.translation import ugettext_lazy as _
class PollForm(forms.ModelForm):
description = forms.CharField(widget=forms.Textarea)
class Meta:
model = Poll
fields = (_('title'),_('description'))
fields = ('title','description')
class ChoiceForm(forms.ModelForm):
choice = forms.DateTimeField(widget=forms.DateTimeInput(format='%d-%m-%Y %H:%M',attrs={'class':'hasdatepicker','size':'18',}),input_formats=['%d-%m-%Y %H:%M'])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment