I have created user earlier in code with email address and password. Created users work fine. Now in later phase I asked more information and would like to fill in first_name and last_name. Code shows old first_name and last_name properly if set in admin view, but logged in user cannot save his information for some reason?
p=User.objects.get(username=request.user.username) if request.method == 'POST': form = AdditionalCandidateInfo(request.POST) if form.is_valid(): p.first_name=form.cleaned_data['first_name'] p.last_name=form.cleaned_data['last_name'] p.save() return HttpResponseRedirect('/') else: form = AdditionalCandidateInfo(initial={'first_name':p.first_name,'last_name':p.last_name}) -thanks for help -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/13b71151-9f2a-4371-be02-4ba57d451dc3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.