Commits

Matthew Schinckel committed fd6d81e

Make the help text a bit more helpful.

Comments (0)

Files changed (1)

sms/models/gateway.py

     
     # These fields are used to parse the response for status/charge info
     success_format = models.CharField(max_length=256, null=True, blank=True,
-        help_text=_(u'A regular expression that parses the response'))
+        help_text=_(u'A regular expression that parses the response. May contain named groups for "gateway_message_id", "status_message" and "status_code".'))
     error_format = models.CharField(max_length=256, null=True, blank=True,
-        help_text=_(u'A regular expression that parses an error response')
+        help_text=_(u'A regular expression that parses an error response. Must contain named group for "status_message".')
     )
     status_mapping = jsonfield.JSONField(default={},
-        help_text=_(u"A mapping of returned status codes to our status choices.")
+        help_text=_(u"A mapping of returned status codes to our status choices. These will be used to match the success_format string to Unsent/Sent/Failed/Delivered.")
     )