Workshop
The workshop consists of a set of questions and answers designed to solidify your understanding of the material covered in this hour. Try answering the questions before looking at the answers.
Quiz
| 1. | Which argument would you pass into a generic object-creation form to redirect to a different URL? |
| 2. | Is there a way to verify if the user is logged in before allowing him or her to create, update, or delete objects using generic forms? |
| |
| 3. | What additional argument is required for generic URL patterns? |
| 4. | What view would you use to render an URL template without having to call a view function? |
Quiz Answers
| 1. | The post_save_redirect argument. |
| 2. | Yes. Set the login_required argument to True in the create_object, update_object, and delete_object views. |
| 3. | An additional dictionary of arguements is required in the generic view URL patterns. |
| 4. | The direct_to_template view. |