14 lines
263 B
Python
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()
|
|
}
|