Commits

Patrick Samson committed 7d411a2

Avoid the 'Enter text to search.' help text imposed in version 1.2.5 of ajax_select

  • Participants
  • Parent commits 8e7e30d

Comments (0)

Files changed (4)

File docs/conf.py

 # built documents.
 #
 # The short X.Y version.
-version = '2.1'
+version = '2.2'
 # The full version, including alpha/beta/rc tags.
-release = '2.1.1'
+release = '2.2.0a1'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

File postman/__init__.py

 from __future__ import unicode_literals
 
 # following PEP 386: N.N[.N]+[{a|b|c|rc}N[.N]+][.postN][.devN]
-VERSION = (2, 1, 1)
-PREREL = ()
+VERSION = (2, 2, 0)
+PREREL = ('a', 1)
 POST = 0
 DEV = 0
 

File postman/forms.py

 
 class WriteForm(BaseWriteForm):
     """The form for an authenticated user, to compose a message."""
-    recipients = CommaSeparatedUserField(label=(_("Recipients"), _("Recipient")))
+    # specify help_text only to avoid the possible default 'Enter text to search.' of ajax_select v1.2.5
+    recipients = CommaSeparatedUserField(label=(_("Recipients"), _("Recipient")), help_text='')
 
     class Meta(BaseWriteForm.Meta):
         fields = ('recipients', 'subject', 'body')
     can_overwrite_limits = False
 
     email = forms.EmailField(label=_("Email"))
-    recipients = CommaSeparatedUserField(label=(_("Recipients"), _("Recipient")), max=1)  # one recipient is enough
+    recipients = CommaSeparatedUserField(label=(_("Recipients"), _("Recipient")), help_text='', max=1)  # one recipient is enough
 
     class Meta(BaseWriteForm.Meta):
         fields = ('email', 'recipients', 'subject', 'body')
 class FullReplyForm(BaseReplyForm):
     """The complete reply form."""
     if allow_copies:
-        recipients = CommaSeparatedUserField(label=(_("Additional recipients"), _("Additional recipient")), required=False)
+        recipients = CommaSeparatedUserField(
+            label=(_("Additional recipients"), _("Additional recipient")), help_text='', required=False)
 
     class Meta(BaseReplyForm.Meta):
         fields = (['recipients'] if allow_copies else []) + ['subject', 'body']

File postman/tests.py

     Usual generic tests.
     """
     def test_version(self):
-        self.assertEqual(sys.modules['postman'].__version__, "2.1.1")
+        self.assertEqual(sys.modules['postman'].__version__, "2.2.0a1")
 
 
 class BaseTest(TestCase):