PageRenderTime 41ms CodeModel.GetById 17ms RepoModel.GetById 0ms 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
Possible License(s): BSD-3-Clause
  1. from django import forms
  2. from regressiontests.generic_views.models import Author
  3. class AuthorForm(forms.ModelForm):
  4. name = forms.CharField()
  5. slug = forms.SlugField()
  6. class Meta:
  7. model = Author