Re: Custom Manager in a separate file gives strange error

2006-10-02 Thread Malcolm Tredinnick
On Mon, 2006-10-02 at 02:10 -0700, Corey wrote: > Never mind, I figured it out. I put the import inside the class instead > of outside the class. > > I need more caffeine. Wait a minute, here... I just wrote 400 words on where the problem is going to be (assuming it was a Django bug) and how you

Re: Custom Manager in a separate file gives strange error

2006-10-02 Thread Malcolm Tredinnick
Hi Corey, On Mon, 2006-10-02 at 02:06 -0700, Corey wrote: > I have put a custom manager in a file called managers.py. When I import > it in the model, and assign it to objects I get this strange error: > > unbound method contribute_to_class() must be called with AddressManager > instance as firs

Re: Custom Manager in a separate file gives strange error

2006-10-02 Thread Corey
Never mind, I figured it out. I put the import inside the class instead of outside the class. I need more caffeine. Corey --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Custom Manager in a separate file gives strange error

2006-10-02 Thread Corey
I have put a custom manager in a file called managers.py. When I import it in the model, and assign it to objects I get this strange error: unbound method contribute_to_class() must be called with AddressManager instance as first argument (got ModelBase instance instead) I don't get the error wh