Re: Quoting in extra(select=...) expression

2009-05-11 Thread Ian Kelly
On Mon, May 11, 2009 at 12:33 PM, lemming110 wrote: > > I am trying to use the select keyword in extra.  But I cannot properly > quote the the expression for postrgres.  I am using the > django.contrib.comments.  I started with this snippet > http://www.djangosnippets.org/snippets/1101/ which ret

Quoting in extra(select=...) expression

2009-05-11 Thread lemming110
I am trying to use the select keyword in extra. But I cannot properly quote the the expression for postrgres. I am using the django.contrib.comments. I started with this snippet http://www.djangosnippets.org/snippets/1101/ which returns the number of comments for an object. However, the code d