Files
blog24/blog/forms.py
2024-07-20 11:36:35 +02:00

14 lines
263 B
Python

from django import forms
from tinymce.widgets import TinyMCE
from blog.models import Article
class ArticleForm(forms.ModelForm):
class Meta:
model = Article
exclude = "__all__"
widgets = {
"content": TinyMCE()
}