from .models import BlogPost
from django import forms

class BlogPostForm(forms.ModelForm):
    class Meta:
        model = BlogPost
        exclude = ('user',)

from .models import BlogPost, Comment
from django.forms import ModelForm

class BlogPostForm(ModelForm):
    class Meta:
        model = BlogPost
        exclude = ('user',)

class CommentForm(ModelForm):
    class Meta:
        model = Comment
        exclude = ('post',)

Add the form for Comment
Add the form for Comment
