<filename>blog/forms.py
from django import forms
from .models import Post, Comment
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm

class SignupForm(UserCreationForm):
    email = forms.EmailField(max_length=100)

    class Meta:
        model = User
        fields = ('username', '<PASSWORD>', '<PASSWORD>', 'email')

class PostForm(forms.ModelForm):
    
    class Meta:
        model = Post
        fields = ("author","title","text")

    #to make edit/connect to particular form option to css class
    widgets={
        'title':forms.TextInput(attrs={'class':'textinputclass'}),
        'text':forms.Textarea(attrs={'class':'editable medium-editor-textarea postcontent'}),
    }

class CommentForm(forms.ModelForm):
    
    class Meta:
        model = Comment
        fields = ("author","text")

    #to make edit/connect to particular form option to css class
    widgets={
        'author':forms.TextInput(attrs={'class':'textinputclass'}),
        'text':forms.Textarea(attrs={'class':'editable medium-editor-textarea'}),
    }

<filename>blog/forms.py
from django import forms
from .models import Post, Comment
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm

class SignupForm(UserCreationForm):
    email = forms.EmailField(max_length=100)

    class Meta:
        model = User
        fields = ('username', '<PASSWORD>', '<PASSWORD>', 'email')

class PostForm(forms.ModelForm):
    
    class Meta:
        model = Post
        fields = ("author","title","text")

    #to make edit/connect to particular form option to css class
    widgets={
        'title':forms.TextInput(attrs={'class':'textinputclass'}),
        'text':forms.Textarea(attrs={'class':'editable medium-editor-textarea postcontent'}),
    }

class CommentForm(forms.ModelForm):
    
    class Meta:
        model = Comment
        fields = ("author","text")

    #to make edit/connect to particular form option to css class
    widgets={
        'author':forms.TextInput(attrs={'class':'textinputclass'}),
        'text':forms.Textarea(attrs={'class':'editable medium-editor-textarea'}),
    }

#to make edit/connect to particular form option to css class #to make edit/connect to particular form option to css class