Re: Help on cookbook

2005-07-31 Thread N. C. Deepak Ramesh
Hi, Hadn't read the new docs before answering.> Also, once you have become comfortable with this approach you could> add some code such as _get_ingredients (in the Recipe class) and> _get_recipes (in the Ingredients class) for easy access to the related > data.> Ignore above paragraph and look at

Re: Help on cookbook

2005-07-31 Thread N. C. Deepak Ramesh
Hi, > Just give an amount field to the Ingredient: > > class Ingredient(meta.Model): > fields = ( > meta.CharField('name', 'Name', maxlength=64), > meta.CharField('description', 'Description', maxlength=128, > blank=True), > meta.FloatField('amount','Amount', max_digi

Re: Help on cookbook

2005-07-31 Thread Radek Svarz
Just give an amount field to the Ingredient: class Ingredient(meta.Model): fields = ( meta.CharField('name', 'Name', maxlength=64), meta.CharField('description', 'Description', maxlength=128, blank=True), meta.FloatField('amount','Amount', max_digits=5, decimal_places=