Changes between Version 13 and Version 14 of DynamicModels


Ignore:
Timestamp:
06/28/2008 01:18:38 PM (7 years ago)
Author:
springmeyer
Comment:

fixing max_length in the second example

Legend:

Unmodified
Added
Removed
Modified
  • DynamicModels

    v13 v14  
    3939#!python
    4040Person = type('Person', (models.Model,), {
    41     'first_name': models.CharField(maxlength=255),
    42     'last_name': models.CharField(maxlength=255),
     41    'first_name': models.CharField(max_length=255),
     42    'last_name': models.CharField(max_length=255),
    4343})
    4444}}}
Back to Top