On Mon, Apr 28, 2008 at 5:20 PM, Richard Dahl <[EMAIL PROTECTED]> wrote:

>
> You are having trouble because the form does not contain a Manager
> object, it contains the primary key of a related Manager object.
>
>
Actually, form.cleaned_data['manager'] will be a Manager object.  That's
what cleaning does -- transforms the POSTed primary key value into the
associated model object.

Which means that:

            message = form.cleaned_data['manager'].email
            send_mail(
                'Software Request', message,
                sender, ['[EMAIL PROTECTED]']
            )

should work.  (Assuming what you want to send is a message consisting of the
manager's email address, which seems a little confusing.  Or is this really
what you mean to put in place of the hardcoded 'mitchell....' for the
destination address?)

Karen

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to