On Apr 13, 5:57 am, Praveen <praveen.python.pl...@gmail.com> wrote: > How the current user logging-in first while registration.. you mean to > say after successfully registration the user must login automatically.
Well, you haven't explained the user flow at all here. But I assume that it's the RegistrationForm that's doing the registering, and you get the new user from that in the line contact = form.save(request) So, 'contact' is the object containing your newly registered user. So surely you should use that as the user value in the profile object. -- DR. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---