|
|
@@ -3,7 +3,7 @@ from django import forms
|
|
|
|
|
|
from django.template.defaultfilters import slugify
|
|
|
|
|
|
-from tinymce.widgets import TinyMCE # Remplace TrumbowygWidget
|
|
|
+# from tinymce.widgets import TinyMCE # Désactivé temporairement
|
|
|
|
|
|
class Cat_Blog(models.Model) :
|
|
|
cb_titre = models.CharField("Titre", max_length = 128, unique = True)
|
|
|
@@ -49,11 +49,11 @@ class Blog(models.Model) : #Architecture pour le blog
|
|
|
class Blog_search_Form(forms.Form):
|
|
|
b_search = forms.CharField(label='Vous recherchez un article ?', max_length=100)
|
|
|
|
|
|
-class Blog_Admin_Form(forms.ModelForm):
|
|
|
- class Meta:
|
|
|
- model = Blog
|
|
|
- exclude = ['b_titre_slugify','b_reading']
|
|
|
- widgets = {
|
|
|
- 'b_contenu': TinyMCE(), # Remplace TrumbowygWidget
|
|
|
- 'b_right': TinyMCE(),
|
|
|
- }
|
|
|
+# class Blog_Admin_Form(forms.ModelForm): # Désactivé temporairement
|
|
|
+# class Meta:
|
|
|
+# model = Blog
|
|
|
+# exclude = ['b_titre_slugify','b_reading']
|
|
|
+# widgets = {
|
|
|
+# 'b_contenu': TinyMCE(),
|
|
|
+# 'b_right': TinyMCE(),
|
|
|
+# }
|