Re: model across several databases

2010-09-12 Thread qMax
Ok. Here is my primitive implementation of 'ForeignKey' across databases. It's still not clean for me - either should i use .using im the pointed places, or django will use proper databases? Also, ModelChoiceField when used in admin views - cannot show current value somehow. class AlienKey(models.

RE: model across several databases

2010-09-09 Thread Sells, Fred
go-us...@googlegroups.com] On Behalf Of qMax Sent: Thursday, September 09, 2010 12:38 PM To: Django users Subject: Re: model across several databases On Sep 9, 3:50 pm, Russell Keith-Magee wrote: > On Thu, Sep 9, 2010 at 8:48 AM, qMax wrote: > > Hi. > > > Being quite new in

Re: model across several databases

2010-09-09 Thread qMax
On Sep 9, 3:50 pm, Russell Keith-Magee wrote: > On Thu, Sep 9, 2010 at 8:48 AM, qMax wrote: > > Hi. > > > Being quite new in django, > > I have a task to integrate data from multiple databases. > > And I wonder if django-1.2 multibase capabilities can help me in that. > > > The idea is like that:

Re: model across several databases

2010-09-09 Thread Russell Keith-Magee
On Thu, Sep 9, 2010 at 8:48 AM, qMax wrote: > Hi. > > Being quite new in django, > I have a task to integrate data from multiple databases. > And I wonder if django-1.2 multibase capabilities can help me in that. > > The idea is like that: > class PersonModel(Model): >    id         = AutoKey(prim