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 recipe model? Or > can I rather get that information from the auth application for free? > > Best regards, >
You should add a ForeingKey to User in your model. Regards. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---