August 2016
Beginner to intermediate
717 pages
15h 24m
English
To make your views clean and simple, it is good practice to move the handling of the form data to the form itself whenever possible and makes sense. The common practice is to have a save() method that will save the data, perform search, or do some other smart actions. We will extend the form that is defined in the previous recipe with the save() method, which will send an e-mail to the selected recipient.
We will build upon the example that is defined in the Passing HttpRequest to the form recipe.
To complete this recipe, execute the following two steps:
save() method to MessageForm. It will try to send an e-mail ...Read now
Unlock full access