Re: Many to Many where two fields in one model are related

2008-09-30 Thread Steve Bergman
Thank you. That looks to be exactly what I need. I remember seeing that on the ToDo list leading up to 1.0, but didn't realize how it applied to my situation. -Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Many to Many where two fields in one model are related

2008-09-30 Thread Rajesh Dhawan
> I'm working on an app for planning balanced daily diets. And I'm > having trouble figuring out how to set up my models. I have: > > Ingredient(models.Model): > ingredient_name = CharField(max_length=50) > unit = CharField(max_length=15) > calories = DecimalField(max_digits=6, deci

Many to Many where two fields in one model are related

2008-09-30 Thread Steve Bergman
I had trouble coming up with a decriptive "subject" for this. Sorry. I'm working on an app for planning balanced daily diets. And I'm having trouble figuring out how to set up my models. I have: Ingredient(models.Model): ingredient_name = CharField(max_length=50) unit = CharField(max_