Thanks! Silly me. But maybe a mention in the custom SQL section pointing to the where / tables stuff would be good.
Alan On Wed, 22 Mar 2006, [EMAIL PROTECTED] wrote: > > Alan Bailey wrote: > > I know I can write custom SQL with the db cursor and it returns raw > > rows... but I would like (and it'd be easy to implement) a way to use > > custom SQL (specifically only WHERE clauses) when doing a get_list or > > get_object. > > > > For example: > > > > foo = users.get_list(status__exact='active', custom_sql='SUM(something) > > > 5') > > the "where" option might be what you need. see "Other lookup options" > on this page: > > http://www.djangoproject.com/documentation/db_api/ > > for details. > > </F> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---