]> git.parisson.com Git - django-postman.git/commitdiff
Avoid the 'Enter text to search.' help text imposed in version 1.2.5 of ajax_select
authorPatrick Samson <pk.samson@gmail.com>
Mon, 17 Dec 2012 13:19:01 +0000 (14:19 +0100)
committerPatrick Samson <pk.samson@gmail.com>
Mon, 17 Dec 2012 13:19:01 +0000 (14:19 +0100)
docs/conf.py
postman/__init__.py
postman/forms.py
postman/tests.py

index e94905bef09779d8dbaca621257dd123f7a7b521..3d57c3e843cbcb3a69c830ab1ff495dcb13e1d73 100644 (file)
@@ -45,9 +45,9 @@ copyright = u'2010, Patrick Samson'
 # built documents.\r
 #\r
 # The short X.Y version.\r
-version = '2.1'\r
+version = '2.2'\r
 # The full version, including alpha/beta/rc tags.\r
-release = '2.1.1'\r
+release = '2.2.0a1'\r
 \r
 # The language for content autogenerated by Sphinx. Refer to documentation\r
 # for a list of supported languages.\r
index 7fb2f6678fc451a106067eeda75fad199d448568..79618876aaee4f55e87e0626a8c11576768f85de 100644 (file)
@@ -4,8 +4,8 @@ A messaging application for Django
 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
 
index 685c4663497fdcbc7ca7eab7193b78f3cda75792..b0ca4d1f22ccc831b6350eaf781c3af874c19d2e 100644 (file)
@@ -152,7 +152,8 @@ class BaseWriteForm(forms.ModelForm):
 
 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')
@@ -165,7 +166,7 @@ class AnonymousWriteForm(BaseWriteForm):
     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')
@@ -202,7 +203,8 @@ allow_copies = not getattr(settings, 'POSTMAN_DISALLOW_COPIES_ON_REPLY', False)
 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']
index 3f813da0858266f85c3762e6eb79cb1ee6c66eeb..9bf3f24a1e3a0bc5d3db7be84ca47a59d28d8af9 100644 (file)
@@ -76,7 +76,7 @@ class GenericTest(TestCase):
     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):