Managing objects spred among several tables/databases.

2011-06-29 Thread qMax
Hello here. My application task is to integrate several applications, and it should manipulate objects, spread among several tables in several databases. Final object is constructed by 'joining' tables by single field (or derivatives). A user should see such objects as solid entities and manipulat

aggregating models across databases

2010-10-13 Thread qMax
Hello. I still cannot figure out how to deal with the task: An entity is represented by several models in different databases. (for instance - one model tores system logins, another model - phones and emails, etc) There are rules to find out related models based on common field. I'd like to have a

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 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 tha

model across several databases

2010-09-08 Thread qMax
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(primary_key=True) system = ForeignKey(SystemUsers, blank=Tru