Re: where the syntax error?

2013-01-14 Thread donarb
On Monday, January 14, 2013 12:39:08 PM UTC-8, Érico Oliveira wrote: > > class Imovel(models.Model): > disponivel = models.BooleanField(choices=DISPO) > data_venda = models.DateTimeField(auto_now_add=True, blank=True) > > def validaData(self): > if self.data_venda <

Re: where the syntax error?

2013-01-14 Thread John
On 14/01/13 20:39, Érico Oliveira wrote: > class Imovel(models.Model): > disponivel = models.BooleanField(choices=DISPO) > data_venda = models.DateTimeField(auto_now_add=True, blank=True) > > def validaData(self): > if self.data_venda < datetime.now - timedelta(days=2) <-

where the syntax error?

2013-01-14 Thread Érico Oliveira
class Imovel(models.Model): disponivel = models.BooleanField(choices=DISPO) data_venda = models.DateTimeField(auto_now_add=True, blank=True) def validaData(self): if self.data_venda < datetime.now - timedelta(days=2) <- -- You received this message because you are