This commit is contained in:
2024-07-20 11:36:35 +02:00
commit 74b43cd8fa
81 changed files with 3131 additions and 0 deletions

13
blog/forms.py Normal file
View File

@@ -0,0 +1,13 @@
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()
}