PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/regressiontests/formwizard/forms.py

https://code.google.com/p/mango-py/
Python | 18 lines | 14 code | 4 blank | 0 comment | 0 complexity | 0713be5fa72e02bf78bf89ed33c53bd3 MD5 | raw file
 1from django import forms
 2from django.contrib.formtools.wizard import FormWizard
 3from django.http import HttpResponse
 4
 5class Page1(forms.Form):
 6    name = forms.CharField(max_length=100)
 7    thirsty = forms.NullBooleanField()
 8
 9class Page2(forms.Form):
10    address1 = forms.CharField(max_length=100)
11    address2 = forms.CharField(max_length=100)
12    
13class Page3(forms.Form):
14    random_crap = forms.CharField(max_length=100)
15    
16class ContactWizard(FormWizard):
17    def done(self, request, form_list):
18        return HttpResponse("")