On May 1, 4:59 pm, deostroll <[email protected]> wrote: > Hi, > > Suppose if I want to edit a contact in my contact book, I am able to > initiate the appropriate command because I know the primary key value. > How do you get the data pertaining to this key value in your python > code? Ultimate aim is to load a web form, with appropriate data in the > form... > > --deostroll
Model.objects.get(pk=value). Seriously, is there some reason you couldn't have looked for this in the documentation? -- DR. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

