Commit 6a598147 authored by chris's avatar chris

Permettre des noms +long (bug 461)

parent 49e51d46
......@@ -19,7 +19,7 @@ class BulletinForm(forms.ModelForm):
model = Bulletin
class VoteForm(forms.ModelForm):
comment = forms.CharField(required=False,widget=forms.TextInput(attrs={'class':'comment'}))
comment = forms.CharField(required=False,max_length=80,widget=forms.TextInput(attrs={'class':'comment'}))
choice = forms.CharField()
voter = forms.CharField(required=False)
class Meta:
......
......@@ -31,7 +31,7 @@ class Choice(models.Model):
class Bulletin(models.Model):
poll = models.ForeignKey(Poll,editable=False)
voter = models.CharField("",max_length=20)
voter = models.CharField("",max_length=40)
def __unicode__(self):
return self.voter
......@@ -40,7 +40,7 @@ class Vote(models.Model):
choice = models.ForeignKey(Choice)
bulletin = models.ForeignKey(Bulletin)
voice = models.BooleanField(blank=True)
comment = models.CharField(max_length=30,blank=True)
comment = models.CharField(max_length=80,blank=True)
def __unicode__(self):
return self.voice
......
......@@ -76,7 +76,7 @@ form label {
#content {
margin-left: 14%;
margin-bottom: 160px;
margin-bottom: 150px;
width: 720px;
}
......
Markdown is supported
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