Re: modelling question / many-to-many / intermediary

2009-05-15 Thread chris
Hi, I solved it that way: class PersonCollaboration(models.Model): person1 = models.ForeignKey('Person', related_name='person1') person2 = models.ForeignKey('Person', related_name='person2') timestamp_created = models.DateTimeField(default=datetime.now) class Person

modelling question / many-to-many / intermediary

2009-05-14 Thread chris
Hi, I'm working with Django since a few weeks and I really *love* it! I came across a problem I didn't find any help so I thought it might be a good idea to ask the pros. I need to model persons and each person should have a list of other persons (a 'collaborates-with'-property). I have to