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=True)
    staff      = ForeignKey(Staff, blank=True)
    foo        = ForeignKey(FooPeople, blank=True)
Problem is that SystemUsers, Staff , FooPeople are in different
databases, thus i cannot use just django.db.models.ForeignKey

My guess is that i should implement something like
class VeryForeignKey(django.db.models.fields.RelatedField)

But their internals are not quite clean and some are marked as "#HACK"
Maybe the idea to do it this way is not good at all?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to