parts/django/tests/regressiontests/formwizard/forms.py
changeset 307 c6bca38c1cbf
equal deleted inserted replaced
306:5ff1fc726848 307:c6bca38c1cbf
       
     1 from django import forms
       
     2 from django.contrib.formtools.wizard import FormWizard
       
     3 from django.http import HttpResponse
       
     4 
       
     5 class Page1(forms.Form):
       
     6     name = forms.CharField(max_length=100)
       
     7     thirsty = forms.NullBooleanField()
       
     8 
       
     9 class Page2(forms.Form):
       
    10     address1 = forms.CharField(max_length=100)
       
    11     address2 = forms.CharField(max_length=100)
       
    12     
       
    13 class Page3(forms.Form):
       
    14     random_crap = forms.CharField(max_length=100)
       
    15     
       
    16 class ContactWizard(FormWizard):
       
    17     def done(self, request, form_list):
       
    18         return HttpResponse("")