Re: Inconsistent database results between application and shell

2010-05-31 Thread Stodge
I hang my head in shame. I had the name and type reversed in my Ajax call to the view. :( On May 31, 12:19 pm, Stodge wrote: > Weird: > > syslog.syslog("Connections = %s" % str(connection.queries)) > > gives: > > May 31 12:18:41 localhost python: Connections = [] > > On May 31, 12:12 pm, Stodge

Re: Inconsistent database results between application and shell

2010-05-31 Thread Stodge
Weird: syslog.syslog("Connections = %s" % str(connection.queries)) gives: May 31 12:18:41 localhost python: Connections = [] On May 31, 12:12 pm, Stodge wrote: > Thanks. The various pieces of data (self.name etc) are 100% correct - > I dumped them all using syslog. However, it just occurred

Re: Inconsistent database results between application and shell

2010-05-31 Thread Stodge
Thanks. The various pieces of data (self.name etc) are 100% correct - I dumped them all using syslog. However, it just occurred to me that maybe it's a unicode/string issue. I'm trying to dump the SQL that's generated - debug_toolbar isn't working for me. The timestamps are generated from the requ

Re: Inconsistent database results between application and shell

2010-05-31 Thread Javier Guerra Giraldez
On Mon, May 31, 2010 at 9:56 AM, Stodge wrote: > I have a query that filters on four fields: > >                res = MyModel.objects.filter(name=self.name, >                                                           type=self.type, >                                                           > la