Re: annotate over period of time

2009-04-22 Thread Johannes Wilm
I've changed that part now, but the output remains the same. On Apr 22, 5:12 pm, Johannes Wilm wrote: > well, that's strange, because that part always worked and still works. > So this line here, to get the daily values: > > queryset=PrecioPrueba.objects.filter(pro

Re: annotate over period of time

2009-04-22 Thread Johannes Wilm
imo','minimo').order_by('fecha') works just fine. What I have problems with is the part about annotating/aggregating values for an entire month. On Apr 22, 5:06 pm, Randy Barlow wrote: > -----BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Johannes Wilm

annotate over period of time

2009-04-22 Thread Johannes Wilm
Hey, I have a model which monitors the prices of certain items at certain markets daily. precios/models: ... class Prueba(Approvable): mercado = models.ForeignKey(Mercado) producto = models.ForeignKey(Producto) fecha = models.DateField() minimo = models.DecimalFiel