mirror of
https://github.com/Hopiu/django.git
synced 2026-03-21 08:20:30 +00:00
12 lines
217 B
Python
12 lines
217 B
Python
|
|
from django import forms
|
||
|
|
|
||
|
|
from regressiontests.generic_views.models import Author
|
||
|
|
|
||
|
|
|
||
|
|
class AuthorForm(forms.ModelForm):
|
||
|
|
name = forms.CharField()
|
||
|
|
slug = forms.SlugField()
|
||
|
|
|
||
|
|
class Meta:
|
||
|
|
model = Author
|