Code

Changes between Version 1 and Version 2 of newforms


Ignore:
Timestamp:
02/28/07 19:02:03 (7 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • newforms

    v1 v2  
    1 Some example code 
    21 
    3 {{{ 
    4  
    5 from django import newforms as forms  
    6  
    7 class UserForm(forms.Form): 
    8     firstname = forms.CharField(max_length=50) 
    9     lastname = forms.CharField(max_length=50) 
    10     email = forms.EmailField()     
    11     password1 = forms.CharField(widget=forms.PasswordInput()) 
    12     password2 = forms.CharField(widget=forms.PasswordInput()) 
    13  
    14 }}}