Thursday, June 24, 2010

Manager's get_query_set are cached ?

Hi,

I'm banging my head against the wall with an issue in get_query_set.

I'm using django 1.2.1 and I'd like to filter the queryset results through a date within get_query_set.
However, I noticed that with the dev. server or gunicorn, the get_query_set is only called on the first request.

This manager is called from a queryset passed to a generic function so unless those functions have builtin cache, I don't understand why the get_query_set is only called on the first request.
Has anyone an idea why this happens ?

Regards,
Xavier.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment