On Saturday 25 February 2006 17:43, ChaosKCW wrote:
> Just one question, I have used model.objects, not
> model.objects.all(). It appears to work and makes more
sense to me.
> Any comments?
Use model.objects.all() (at least for now). model.objects
will work in
some cases, but perhaps not in others. (Technically, it's
to do with
QuerySets caching their result for efficiency, and the fact
that you
don't want 'model.objects' to cache it's result).
Luke
--
Parenthetical remarks (however relevant) are unnecessary
Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/
--~--~---------~--~----~------------~-------~--~----~
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://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|