Code

Changes between Version 3 and Version 4 of CookBookNewFormsDynamicFields


Ignore:
Timestamp:
01/02/08 06:09:52 (6 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBookNewFormsDynamicFields

    v3 v4  
    3131 
    3232This technique isn't limited to defining new fields. You can also set a field's `initial` value in the `__init__` method, which is really helpful when your forms depend on your models, but don't match up exactly so you can't use the `ModelForm` framework. 
     33 
     34''References:''[[BR]] 
     35 
     36[http://programming-whore.blogspot.com/2007/04/useful-things-in-python-you-might-not.html Enumerate Function]