List Info

Thread: Help with Generic Views in Magic Removal Branch




Help with Generic Views in Magic Removal Branch
user name
2006-02-25 17:43:49
Thanks, I had a look at the code and worked that out.

Just one question, I have used model.objects, not
model.objects.all().
It appears to work and makes more sense to me. Any comments?

Thanks, 

Stephen


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Help with Generic Views in Magic Removal Branch
user name
2006-02-25 18:22:40
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-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )