I am noticing some odd SQL being generated for certain queries. For  
example, if I type the following in the shell:

 >>> TroubleCode.objects.all()[:5]

and then I look at the db queries:

 >>> from django.db import connection
 >>> connection.queries

I get the desired query, plus 5 extra queries corresponding to the  
number in the LIMIT clause:

http://dpaste.com/19538/

Here are the models I am using:

http://dpaste.com/19541/

Any idea why this is happening? I don't notice this behavior in other  
models.

I am using Django 1.0.2

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to