9.2.1 Understanding Expected Form Behavior

Manipulating forms in views is based primarily on expected user behavior. Typically, with an HTML form to create new objects, web developers and designers expect very strict behavior on the part of the web form, visualized in Figure 9.1. The states in Figure 9.1 detail form states for creating objects. We deal with updating and deleting objects later in this chapter.

Image

Figure 9.1: Diagram for Expected User Interaction

We need to use our forms and views in tandem to allow for the user behavior described in Figure 9.1. Without proper preparation and planning, this is a process that many beginners find ...

Get Django Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.