Re: How does my Model gets the objects attribute

2009-07-20 Thread Joshua Partogi
Thanks Russel, You've always been very helpful. :-) Now that I get the basic idea of how it works, I will get some resources on Python metaprogramming. It seems to be used heavily in Django ORM. Kind Regards, On Mon, Jul 20, 2009 at 8:45 PM, Russell Keith-Magee wrote: > > On Mon, Jul 20, 2009

Re: How does my Model gets the objects attribute

2009-07-20 Thread Russell Keith-Magee
On Mon, Jul 20, 2009 at 4:05 PM, Joshua Partogi wrote: > Dear all, > > This may seems trivial. I've been looking at django source code > model/base.py and been looking around how django gives my model an objects > attribute but can not find it. I can see that the ModelBase will give the > _default

How does my Model gets the objects attribute

2009-07-20 Thread Joshua Partogi
Dear all, This may seems trivial. I've been looking at django source code model/base.py and been looking around how django gives my model an objects attribute but can not find it. I can see that the ModelBase will give the _default_manager attribute, but where and how does this objects attribute g