Concider this:
parent = models.ForeignKey('self', null=True, blank=True,
related_name='children')

So my user makes a database that has

root
level1
level2
level3

If the user moves level1 under level3 than the database breaks and I
get this error.
ProgrammingError: (2014,, "Commands out of sync; you can't run this
command now")

This is because the chain is broken where each level point to its
parent up to root! How can I avoid this in the admin!
--~--~---------~--~----~------------~-------~--~----~
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