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 -~----------~----~----~----~------~----~------~--~---