Re: Save to User table first_name and last_name from a page with a different form

2014-01-22 Thread Brad Rice
I think I figured it out. The user is on the reuqest so it was pretty easy. def form_valid(self, form): obj = form.save(commit=False) obj.created_by = self.request.user obj.application_id = self.kwargs['app_id'] u = self.request.user u.last_name = obj.last_n

Save to User table first_name and last_name from a page with a different form

2014-01-22 Thread Brad Rice
I have a registration and login page that only takes username and password. After they register or login, they are taken to a profile form where they can provide additional information such as address and phone numbers. I'm using a Model Form CreateView there. On that page I want the First Name