Here's a simple example. It could be improved, but it's meant to be very simple.
#Make a simple form.
class AgeForm(forms.Form):
age = forms.IntegerField()
#When the user submits the form:
age_form = AgeForm(request.POST)
if age_form.is_valid()
#get the pk however you need to
person = Person.objects.get(pk = 123)
person.age = age_form.cleaned_data['age']
person.save()
--
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.