from django import forms
from ckeditor.widgets import CKEditorWidget
from .models import Post


class Postform(forms.ModelForm):
    conteudo = forms.CharField(widget=CKEditorWidget())

    class Meta:
        model = Post
        fields = ("titulo", "conteudo", "categoria", "imagem", "status")

from django import forms
from ckeditor.widgets import CKEditorWidget
from .models import Post


class Postform(forms.ModelForm):
    conteudo = forms.CharField(widget=CKEditorWidget())

    class Meta:
        model = Post
        fields = ("titulo", "conteudo", "categoria", "imagem", "status")
