summaryrefslogtreecommitdiffstats
path: root/core/forms.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-06-13 23:16:19 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-06-13 23:16:19 +0100
commit38fa552c00f140a77b963f03b38fa6bae485cdcd (patch)
treecd4a449b558f830580e6bea84e28ddfca5813742 /core/forms.py
parentf8fa426adb709dcebbdf0cc4b0894c418ced9361 (diff)
downloadtroggle-38fa552c00f140a77b963f03b38fa6bae485cdcd.tar.gz
troggle-38fa552c00f140a77b963f03b38fa6bae485cdcd.tar.bz2
troggle-38fa552c00f140a77b963f03b38fa6bae485cdcd.zip
Disable TinyMCE
Diffstat (limited to 'core/forms.py')
-rw-r--r--core/forms.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/forms.py b/core/forms.py
index 417ed10..7f33e05 100644
--- a/core/forms.py
+++ b/core/forms.py
@@ -6,7 +6,7 @@ from django.forms import ModelForm
from django.forms.models import modelformset_factory
from django.contrib.admin.widgets import AdminDateWidget
-from tinymce.widgets import TinyMCE
+#from tinymce.widgets import TinyMCE
from troggle.core.models import Person, PersonExpedition, Expedition
from troggle.core.models_caves import Cave, LogbookEntry, QM, Entrance, CaveAndEntrance
@@ -123,7 +123,8 @@ def getTripForm(expedition):
cave = forms.ChoiceField([(c, c) for c in caves], required=False)
location = forms.CharField(max_length=200, required=False)
caveOrLocation = forms.ChoiceField([("cave", "Cave"), ("location", "Location")], widget = forms.widgets.RadioSelect())
- html = forms.CharField(widget=TinyMCE(attrs={'cols': 80, 'rows': 30}))
+# html = forms.CharField(widget=TinyMCE(attrs={'cols': 80, 'rows': 30}))
+ html = forms.CharField(widget=forms.Textarea(attrs={"cols":80, "rows":20}))
def clean(self):
print((dir(self)))