I ran into a problem with cursor.execute, moved onto a completely separate 
part of my program, and ran into the same issue. I get that the value of a 
cursor return is: "django.db.backends.util.CursorDebugWrapper object". My 
code in my view is:

model_id.execute("SELECT id FROM \"{0}\".\"{1}\" where 
model_region='{2}'".format("public","pecasRunLog_modelinstance", model_name))

In another .py file I have:

run_id.execute("SELECT id FROM \"pecasRunLog_runinstance\" where 
run_name='{0}'".format(schema+timestamp))

In both cases, the code runs correctly in postgresql and I have similar 
code:

region_id.execute("SELECT id FROM \"pecasRunLog_modelinstance\" where 
model_region='{0}'".format(region))

which runs correctly.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/db494ceb-7ec9-4929-ae60-3338f57a4f59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to