diff --git a/decide/booth/models.py b/decide/booth/models.py index d26d7df8d2..e872f1777c 100644 --- a/decide/booth/models.py +++ b/decide/booth/models.py @@ -26,9 +26,9 @@ def __str__(self): class Sugerencia(models.Model): user_id = models.IntegerField() title = models.CharField(max_length=200, blank=False) - suggesting_date = models.DateField(default=datetime.date.today) + suggesting_date = models.DateField(blank=False) content = models.TextField(blank=False, max_length=4000) - send_date = models.DateField(blank=False) + send_date = models.DateField(default=datetime.date.today) is_approved = models.NullBooleanField() def __str__(self): @@ -39,3 +39,4 @@ def was_published_recently(self): now = timezone.now().date() limit_date = now - datetime.timedelta(weeks=4) return limit_date <= self.send_date + diff --git a/decide/booth/templates/booth/sugerenciaform.html b/decide/booth/templates/booth/sugerenciaform.html index b2d31d2e25..cee9158722 100644 --- a/decide/booth/templates/booth/sugerenciaform.html +++ b/decide/booth/templates/booth/sugerenciaform.html @@ -27,6 +27,7 @@