Re: Stuck with foreign keys

2011-02-11 Thread Coen
Thanks Tom and Shawn. I read that some weeks ago, but it didn't make sense at the time. It works, just what I needed Tom, re. naming: After 30 years (on and off) of programming, I've ended up with my own coding standards :-) I'll change it if/when I work with others Coen -- Yo

Stuck with foreign keys

2011-02-11 Thread Coen
For an email discussion list application I'm setting up the following model: Members and EmailAddress(es) Each Member has multiple EmailAddress(es), and one PostingAddress Definition (abbreviated): class Member(models.Model): PostingAddress = models.ForeignKey(EmailAddress) # error in