Hello,

We're not sure how can we represent the following data structure in the django 
model?

Grandparent Object
        First Name - NULL
        Last Name - NULL
        City - Anytown
        Ancestor Object - NULL

Parent Object
        First Name - Bob
        Last Name - Smith
        City - NULL
        Ancestor Object - Grandparent

Child Object
        First Name - Jill
        Last Name - NULL
        City - NULL
        Ancestor Object - Parent

We'd like to be able to use the child object with the NULL fields coming from 
the ancestor objects.  We need to update the parent field and have all the 
child objects return the new value.  The parent object behaves like a template, 
some users have write access to the child, but not the parent object or some 
users may not have write access to all the child fields.

We'd like to keep database calls to a minimum and avoid looping lookups if 
possible.

Is there a better way to implement this?

--
Eric Chamberlain



--

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