if form.is_valid(): user = form.save(commit=False) user.is_partner = True user.is_staff = True password = request.POST.get(\'pass