Re: Adding extra data in annotate()

2010-11-30 Thread fgasperino
For reference, it looks like D.Rosman has already wrote about the same topic at http://blog.roseman.org.uk/. Franco -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscri

Re: Adding extra data in annotate()

2010-11-30 Thread fgasperino
Ideally any proposed solution could also substitute the search for the newest timestamp via Max() to be the largest Value.data float with similar logic. Franco -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

Adding extra data in annotate()

2010-11-30 Thread fgasperino
All, I'm attempting to consolidate many orm queries into one. My models: class Key (models.Model): name = models.CharField() class Value (models.Model): data = models.FloatField() timestamp = models.DateTimeField() key = models.ForeignKey(Key) Given a list of Key names, I am able to ann