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 pseudo-model, integrating all related sub-models,
with possibility to create/update all the fields in one form in admin
panel.
And it should also deal with situation when not all submodels are
present.

Such integrated model in general does not have own fields to be
stored,
but only _rules_ to find related submodels, based on the id.

The only approach i see is to make a pseudo-model having id-field and
references to related submodels.
The references should be initialized for each instance, probably - in
a special model.manager.

My confusion is that it's not clean what interfaces should be
implemented to make such model usable in admin site.
And also - how to integrate several models into single admin form (or
a set of inline-subforms)?

Can please someone clarify this points?

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

Reply via email to