I'm sure there's a better answer than this, but if you need it immediately this get you what you're asking for.
Create a custom manager for your class and just define filter() as below: class MyCustomManager(models.Manager): def filter(self, *args, **kwargs): queryset = super(MyCustomManager, self).filter(*args, **kwargs) query = unicode(queryset.query) return queryset You can print/log debug the value of 'query' to see the raw SQL. Just set objects = MyCustomManager() in your model temporarily. Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.