<reponame>goulartdev/udemy-django-course<filename>my_site/blog/forms.py
from django import forms

from .models import PostComment


class AddCommentForm(forms.ModelForm):
    class Meta:
        model = PostComment
        fields = ("name", "email", "text")

        labels = {
            "text": "Comment",
        }

from django import forms

from .models import PostComment


class AddCommentForm(forms.ModelForm):
    class Meta:
        model = PostComment
        fields = ("name", "email", "text")

        labels = {
            "text": "Comment",
        }