forms.py 217 B

1234567891011
  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