[Oi-commits] r1490 - trunk/poll
oi-commits at pardus.org.tr
oi-commits at pardus.org.tr
Wed Jun 18 17:22:42 EEST 2008
Author: jnmbk
Date: Wed Jun 18 17:22:42 2008
New Revision: 1490
Modified:
trunk/poll/models.py
Log:
fix date and add allow_multiple_choices
Modified: trunk/poll/models.py
=================================================================
--- trunk/poll/models.py (original)
+++ trunk/poll/models.py Wed Jun 18 17:22:42 2008
@@ -50,9 +50,10 @@
class Poll(models.Model):
question = models.CharField("Soru", max_length=128, help_text="Buraya anketin sorusunu yazın.")
- allow_changing_vote = models.BooleanField("Oy Değiştirmek İzinli", default=True, help_text="Kullanılan oyların sonradan değiştirilebilmesini istiyorsanız bunu işaretleyin.")
+ allow_changing_vote = models.BooleanField("Oy Değiştirmek İzinli", default=False, help_text="Kullanılan oyların sonradan değiştirilebilmesini istiyorsanız bunu işaretleyin.")
+ allow_multiple_choices = models.BooleanField("Çok Seçmeli Oylama", default=False, help_text="Bir kişinin birden fazla seçenekte oy kullanabilmesini isiyorsanız bunu seçin.")
date_limit = models.BooleanField("Süreli", help_text="Oylamada süre sınırı olmasını istiyorsanız bunu işaretleyin.")
- end_date = models.DateTimeField("Bitiş Tarihi", blank=True, help_text="Oylamanın ne zaman biteceğini belirleyin. 30/8/2008 gibi.")
+ end_date = models.DateTimeField("Bitiş Tarihi", blank=True, null=True, help_text="Oylamanın ne zaman biteceğini belirleyin. 30/8/2008 gibi.")
def __unicode__(self):
if len(self.question) > 32:
More information about the Oi-commits
mailing list