<reponame>TongasHub/blog-final-django
"""User forms."""

# Django
from django import forms

# Models
from comments.models import Comment
from django.contrib.auth.models import User


class CreateCommentForm(forms.ModelForm):
    """Post model form."""

    comment = forms.CharField(widget=forms.Textarea)

    class Meta:
        """Form settings."""

        model = Comment
        fields = ("user", "profile", "post", "comment")

"""User forms."""

# Django
from django import forms

# Models
from comments.models import Comment
from django.contrib.auth.models import User


class CreateCommentForm(forms.ModelForm):
    """Post model form."""

    comment = forms.CharField(widget=forms.Textarea)

    class Meta:
        """Form settings."""

        model = Comment
        fields = ("user", "profile", "post", "comment")
User forms. # Django # Models Post model form. Form settings.