hi,

I'm designing my first django app and would appreciate any advice how
best to organise my models.

I have a hierarchal model called Node.  this allows me to create a
hierarchy of nodes - and perform hierarchal operatoins.  So far so
good.  each node can be of two 'types':
1/ job
2/ shot

I did originally try and make shot & job inherit the Node model.
However, they couldn't 'link' together (ie, using self as a
ForeignKey) - as they're of different types.  So i've made each of
these two node types into seperate models.  each Node should only be
linked to one type at a time.  From the manual/book - i belive that
GenericForeignKey is the way to go.  ie, insert a GenericForeignKey
field into the Node.  Does this sound like a good approach?

Many Thanks in Advance,

Paul
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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