Re: django.db.models.Options contribute_to_class uses default connection instead of using DATABASE_ROUTERS

2010-05-12 Thread Peter Long
On May 12, 8:54 am, Russell Keith-Magee wrote: > > FYI - I got itchy fingers, so I opened a bug report: > > http://code.djangoproject.com/ticket/13528 > > Yours > Russ Magee %-) No problem. Thanks Peter Long -- You received this message because you are subscribed

Re: django.db.models.Options contribute_to_class uses default connection instead of using DATABASE_ROUTERS

2010-05-11 Thread Peter Long
on and in addition it appears the correct way to get a connection is to "ask" a router what connection to use for a given Model instance. Since Options is part of a Model instance's _meta instance I am not sure how I would call router.db_for_read() from a Options getter method. Pet

django.db.models.Options contribute_to_class uses default connection instead of using DATABASE_ROUTERS

2010-05-10 Thread Peter Long
Hi Django developers, I have been using the development copy of django from the svn trunk. I think I may have found an area that needs updating now that django supports multiple databases. I am not very familiar with the django backend architecture so I am not sure if its a real bug or not and if