PageRenderTime 161ms CodeModel.GetById 120ms app.highlight 1ms RepoModel.GetById 40ms app.codeStats 0ms

/tests/regressiontests/generic_views/forms.py

https://code.google.com/p/mango-py/
Python | 11 lines | 7 code | 4 blank | 0 comment | 0 complexity | cb03647f5e45996b94b74ed3afae0427 MD5 | raw file
 1from django import forms
 2
 3from regressiontests.generic_views.models import Author
 4
 5
 6class AuthorForm(forms.ModelForm):
 7    name = forms.CharField()
 8    slug = forms.SlugField()
 9
10    class Meta:
11        model = Author