Changes between Version 6 and Version 7 of Tutorial2


Ignore:
Timestamp:
07/14/09 21:48:35 (5 years ago)
Author:
andrew
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Tutorial2

    v6 v7  
    3636 
    3737Note 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 
     39Here's the new models.py: 
    3840 
    3941{{{