Thursday, September 1, 2011

Class-based FormView Contact Form

I want to make a contact form using the class-based FormView. How do I pass the recipient email?

Let's say I want a pre-defined recipient, and also the option for the sender of the form to receive a copy.

I can do this with a function view but I'd like to use the new class-based generic views.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/CryrcLwPXH0J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment