forms.py 157 B

1234567
  1. from django import forms
  2. from .models import Post
  3. class PostForm(forms.ModelForm):
  4. class Meta:
  5. model = Post
  6. fields = ('title', 'text',)