Re: Recipe / Ingredient Model

2007-08-02 Thread Shane Graber
LOL, you don't know how often this happens to me. :P Shane On 8/2/07, Lucky B <[EMAIL PROTECTED]> wrote: > > God, 0/2, just do what John proposed, I am not thinking straight right > now, what I would give for an edit capability on my emails, I'll spend > all of tonight removing my foot from my

Re: Recipe / Ingredient Model

2007-08-02 Thread Shane Graber
Excellent! This is exactly what I was looking for. Thanks for the help! Shane On 8/2/07, John Danks <[EMAIL PROTECTED]> wrote: > > On 8/2/07, Shane Graber <[EMAIL PROTECTED]> wrote: > > > > I'm trying to make a recipe/ingredient application as my road to > > learning more about Django. Makin

Re: Recipe / Ingredient Model

2007-08-02 Thread Lucky B
God, 0/2, just do what John proposed, I am not thinking straight right now, what I would give for an edit capability on my emails, I'll spend all of tonight removing my foot from my mouth. On Aug 2, 10:49 pm, Lucky B <[EMAIL PROTECTED]> wrote: > Ok, I've thought about it some more, and came up wi

Re: Recipe / Ingredient Model

2007-08-02 Thread Lucky B
Ok, I've thought about it some more, and came up with this: http://dpaste.com/hold/15915/ It's not quite what you asked for, for your idea of the interface you're gonna have to either code a QuantityField type field to merge both the quantity and unit, or just write views that accommodate the midd

Re: Recipe / Ingredient Model

2007-08-02 Thread John Danks
On 8/2/07, Shane Graber <[EMAIL PROTECTED]> wrote: > > I'm trying to make a recipe/ingredient application as my road to > learning more about Django. Making a model of an ingredient and most > of the recipe are relatively straight forward based on the excellent > tutorials on the Django. However

Re: Recipe / Ingredient Model

2007-08-02 Thread Lucky B
ack, I missed a few things, the ingredient-quantity measure. not sure how to do that. ignore my previous message. On Aug 2, 10:27 pm, Lucky B <[EMAIL PROTECTED]> wrote: > You're missing just: > ingredients = models.ManyToManyField(Ingredient) > > In your recipe model. > > If you want a pretty int

Re: Recipe / Ingredient Model

2007-08-02 Thread Lucky B
You're missing just: ingredients = models.ManyToManyField(Ingredient) In your recipe model. If you want a pretty interface in admin (if you're not using newforms- admin) then: ingredients = models.ManyToManyField('Ingredient', filter_interface=models.HORIZONTAL) On Aug 2, 10:13 pm, "Shane Grabe

Recipe / Ingredient Model

2007-08-02 Thread Shane Graber
I'm trying to make a recipe/ingredient application as my road to learning more about Django. Making a model of an ingredient and most of the recipe are relatively straight forward based on the excellent tutorials on the Django. However, I'm struggling with understanding how to hook in multiple i