diff messages/forms.py @ 1137:6abcecd3d277

Fix user autocomplete on private messages.
author Brian Neal <bgneal@gmail.com>
date Sun, 23 Oct 2016 12:00:04 -0500
parents 82f1f6f905eb
children 0e93eaa323e7
line wrap: on
line diff
--- a/messages/forms.py	Thu Oct 13 19:47:21 2016 -0500
+++ b/messages/forms.py	Sun Oct 23 12:00:04 2016 -0500
@@ -13,7 +13,6 @@
 from core.html import ImageCheckError
 from core.html import image_check
 from core.markup import site_markup
-from core.widgets import AutoCompleteUserInput
 import messages
 from messages.models import Flag, Message, Options
 
@@ -28,9 +27,9 @@
     """
     receiver = forms.CharField(label='To',
             max_length=30,
-            widget=AutoCompleteUserInput())
-    subject = forms.CharField(max_length=120, widget=forms.TextInput(attrs={'size': 52}))
-    message = forms.CharField(widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'}))
+            widget=forms.TextInput(attrs={'class': 'sg101-user-autocomplete'}))
+    subject = forms.CharField(max_length=120)
+    message = forms.CharField(widget=forms.Textarea)
     attach_signature = forms.BooleanField(label='Attach Signature?', required=False)
     parent_id = forms.IntegerField(required=False, widget=forms.HiddenInput)