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
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
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=
3 matches
Mail list logo