On 1/9/07, sandro.dentella <[EMAIL PROTECTED]> wrote: > I'd like to know if it is possible to print the sql statement *before* > issuing it, just to play with queryset and filtering.
If you don't mind delving a bit into the code, you'll find that the QuerySet class has a '_get_sql_clause' method which is what Django itself uses to get the SQL to execute. The return format of that method is a tuple containing the elements of the query. -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---