On Mon, Dec 21, 2009 at 9:02 AM, Bobby Roberts <tchend...@gmail.com> wrote: > Looking at this code: > > newsqlcmd="select title,author from booklist" > cursor=connection.cursor() > cursor.execute (newsqlcmd) > tms=cursor.fetchall() #this is the actual recordset being pushed > back to the template > > > how can I get the record count? I could loop through and > increment a counter but i know that is inefficient.
will the count() method work? http://www.djangoproject.com/documentation/models/lookup/ -- 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.