Hi,
        I have a table (implementing a tree) that a whole lot of other  
tables have ForeignKeys pointing to.  I'm trying to write a "clone"  
method that takes an element in the table, duplicates it (with a new  
ID), and creates duplicates of all table elements from any other  
tables that ForeignKey to the original table entry and re-points them  
at the new table entry.

        I know Django keeps track of connections like this somehow, for the  
*_set properties.  Is there a way to get at that information  
somehow?, or does anyone have a better idea on how to do this?

Thanks,
Adam

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