O'Reilly logo

Django Unleashed by Andrew Pinkham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required