Re: Stuck with foreign keys

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 5:36 PM, Coen wrote: > 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/w

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 -- You received this me

Re: Stuck with foreign keys

2011-02-11 Thread Shawn Milochik
Enclose the name of the foreign key class in quotes. This way the file will validate. -- 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

Re: Stuck with foreign keys

2011-02-11 Thread Tom Evans
On Fri, Feb 11, 2011 at 3:09 PM, Coen wrote: > 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): >    Post

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