User field in a model?

2009-05-05 Thread Fabio Natali
Dear All, I have a Django based web application to gather recipes. I have a "recipe" model with fields "ingredients", "date added", etc. I wish I could keep track of the user who added each recipe. Am I supposed to add a "user" (or say "cook") field to my recipe model? Or can I rather get that

Re: User field in a model?

2009-05-05 Thread Gabriel
Fabio Natali escribió: > Dear All, > > I have a Django based web application to gather recipes. I have a > "recipe" model with fields "ingredients", "date added", etc. > > I wish I could keep track of the user who added each recipe. Am I > supposed to add a "user" (or say "cook") field to my rec

Re: User field in a model?

2009-05-05 Thread Fabio Natali
Gabriel wrote: [...] > Fabio Natali escribió: > > I wish I could keep track of the user who added each recipe. Am I > > supposed to add a "user" (or say "cook") field to my recipe model? Or > > can I rather get that information from the auth application for free? > > You should add a ForeingKey