> I can't execute custom SQL. 'Cursor' object has no attribute
> 'fechone', and 'fechall'
Try "fetchone" and "fetchall" (with the letter "t")
However, for your use-case, you may prefer to simply use the
.values() method of a recordset:
Labels.objects.values("id")
as described at
http://www.djangoproject.com/documentation/db-api/#values-fields
-tim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---