Re: Question about documentauion under Managers>Adding extra Manager methods

2013-03-31 Thread Russell Keith-Magee
Unless I'm mistaken, it's PostgreSQL. The telling feature is the GROUP BY clause - PostgreSQL allows you to group by column index. http://www.postgresql.org/docs/9.0/static/sql-select.html#SQL-GROUPBY Since this is an eccentricity of PostgreSQL, it would be a good idea for us to modify that examp

Re: Question about documentauion under Managers>Adding extra Manager methods

2013-03-30 Thread James Durham
In this instance, what I'm asking is about the documentation. In other words does anyone recognize the dialect. It would just help in understanding docs. Though, thanks for indicating that it is backend dependent. On Friday, March 29, 2013 8:40:09 PM UTC-5, Russell Keith-Magee wrote: > > > > On Sa

Re: Question about documentauion under Managers>Adding extra Manager methods

2013-03-29 Thread Russell Keith-Magee
On Sat, Mar 30, 2013 at 6:20 AM, James Durham wrote: > In the example: > > class PollManager(models.Manager): > def with_counts(self): > from django.db import connection > cursor = connection.cursor() > cursor.execute("""SELECT p.id, p.question, p.poll_date,