Re: App / Model specific database solution

2010-01-25 Thread Russell Keith-Magee
On Mon, Jan 25, 2010 at 8:21 PM, Yuri Baburov wrote: > Hi Russell, > > regarding that doc page, > > there's a typo, please remove that hanging "admin.site.register": > class PublisherAdmin(MultiDBModelAdmin): >    inlines = [BookInline] > >    admin.site.register Done - thanks for the report, Yur

Re: App / Model specific database solution

2010-01-25 Thread Yuri Baburov
Hi Russell, regarding that doc page, there's a typo, please remove that hanging "admin.site.register": class PublisherAdmin(MultiDBModelAdmin): inlines = [BookInline] admin.site.register On Mon, Jan 25, 2010 at 5:53 PM, Russell Keith-Magee wrote: > On Mon, Jan 25, 2010 at 7:31 PM, Bill

Re: App / Model specific database solution

2010-01-25 Thread Bill Hubauer
Thanks Russ, I'll checkout the database router feature. Regards, Bill On Jan 25, 2010, at 6:53 AM, Russell Keith-Magee wrote: > As of r12272 (committed about three days ago), the best approach to > this problem is to define a database router that directs queries on a > particular object type

Re: App / Model specific database solution

2010-01-25 Thread Russell Keith-Magee
On Mon, Jan 25, 2010 at 7:31 PM, Bill Hubauer wrote: > > > Hi all, > > Given the new multi-db implementation, I put together a couple of little > "helper" classes to make app specific, or model specific databases really > easy. > > Please consider the following and let me know if you think this

App / Model specific database solution

2010-01-25 Thread Bill Hubauer
Hi all, Given the new multi-db implementation, I put together a couple of little "helper" classes to make app specific, or model specific databases really easy. Please consider the following and let me know if you think this is too abusive of the internals of the multi-db implementation. Any