Add this line to that code: print dir(tms)
I think you'll find a method of the recordset that will give you the count. I don't remember off of the top of my head. Why are you doing a direct SQL query instead of using a queryset from your model? 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.