diff news/forms.py @ 1003:fa52bfb28217

Set id on submit news form for image related js.
author Brian Neal <bgneal@gmail.com>
date Thu, 26 Nov 2015 10:47:24 -0600
parents 19b86e684cc2
children 21c592cac71c
line wrap: on
line diff
--- a/news/forms.py	Thu Nov 26 00:47:33 2015 -0600
+++ b/news/forms.py	Thu Nov 26 10:47:24 2015 -0600
@@ -17,6 +17,7 @@
     short_markup = forms.CharField(
             label="Article text",
             widget=forms.Textarea(attrs={
+                'id': 'id_body',    # needed for image related js
                 'rows': 60,
                 'cols': 80,
                 'class': 'markItUp smileyTarget',