Changes between Version 6 and Version 7 of Tutorial2
- Timestamp:
- 07/14/09 21:48:35 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorial2
v6 v7 36 36 37 37 Note that we '''must''' provide a default value for the `length` column, since we are adding it to a table; the database has to know what to put in the empty new cells. If the column has `null=True` set, it doesn't matter, as the cells will default to NULL; in this case, though, we haven't specified `null=True`, and so the new column defaults to NOT NULL. 38 39 Here's the new models.py: 38 40 39 41 {{{
