Re: Different objects returned when filtering with a ValuesListQuerySet

2014-07-28 Thread Marc Kirkwood
Yeah that's what I was thinking it could be. cheers Russ. -- Legal status: Any views or opinions are solely those of the sender and do not necessarily represent those of SF Software Ltd unless expressly stated in the body of the text of the email, this email is not intended to form a binding

Different objects returned when filtering with a ValuesListQuerySet

2014-07-25 Thread Marc Kirkwood
When filtering a queryset with a *ValuesListQuerySet* instance in Django 1.6, different objects to that shown in the apparent list seem to be returned by the iterator. An illustration of a head-scratching debug session is shown below: (Pdb) latest *[4, 1]* (Pdb)

Templatetag variable resolution choices (Python literals)

2013-07-01 Thread Marc Kirkwood
OK, so I've got a template tag and a corresponding Node class. In order to check the value of two template variables in the Node.render method, I'm using the template.Variable class as specified in the docs. However, I'm wondering if there is any point to this, given the extra lines of code

Re: Django with Jquery

2012-10-11 Thread Marc Kirkwood
I'm having this problem at the moment too. In our case, it's because we have a base template that inserts the jQuery library via a script tag towards the end of the document, just before the close of the body element. Since anything following a $ character in JS depends on jQuery, including