'QuerySet' object has no attribute 'get_payload'

2010-08-23 Thread Cole743
"AttributeError at _ 'QuerySet' object has no attribute 'get_payload' Request Method: POST Request URL: Exception Type: AttributeError Exception Value: 'QuerySet' object has no attribute 'get_payload' Exception Location: /usr/lib/python2.5/email/e

Re: custom template tags with a raw query

2010-06-16 Thread Cole743
The first link I had seen and used. My custom query works, I had just been having issues with the tags. I had been through the docs and seen a different one on tags, but apparently passed over the one you posted in the link. It filled in some of the gaps I was missing, thanks. Very helpful. -- Yo

custom template tags with a raw query

2010-06-14 Thread Cole743
Hello again, My last question may have been unclear, so I'm going to be more specific. I want to use the results of this: cursor.execute("SELECT * from sp_getreport(""varchar"" %s)", [usr]) (or something similar) In a custom template tag to display in a template. The results of the query are: a