Commit 0f4603ec authored by christophe siraut's avatar christophe siraut

Permettre des noms +long (bug 461)

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