Re: Recursive self referring foreignkeys

2006-02-10 Thread Rudolph
Thanks! Thats just what I needed! --~--~-~--~~~---~--~~ 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 t

Re: Recursive self referring foreignkeys

2006-02-10 Thread Max Battcher
Rudolph wrote: > With meta.ForeignKey("self") you can create an object that can refer to > objects from the same type. But how do I prevent loops? (like an object > that refers to itself, or object A refers to object B which refers back > to object A). With limit_choices_to I could prevent an obje

Recursive self referring foreignkeys

2006-02-10 Thread Rudolph
Hi, With meta.ForeignKey("self") you can create an object that can refer to objects from the same type. But how do I prevent loops? (like an object that refers to itself, or object A refers to object B which refers back to object A). With limit_choices_to I could prevent an object from selecting