diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2012-12-04 19:48:39 -0300 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2012-12-04 19:50:19 -0300 |
| commit | b6f67bd50e77b8501a4e90b7a83381412b18fcc7 (patch) | |
| tree | 50d7a0e2c62df00723407bc65356ebd397357249 | |
| parent | 8c099ec3ec969ceef8de2e7fc90220b59cdf9b71 (diff) | |
[1.5.x] Minor idiomatic and docstring edits in ar localflavor.
45f00dbb93a0e929f4320b9c652fef51655e6872 from master.
| -rw-r--r-- | django/contrib/localflavor/ar/forms.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/django/contrib/localflavor/ar/forms.py b/django/contrib/localflavor/ar/forms.py index dc4235f9dd..cc6c833de0 100644 --- a/django/contrib/localflavor/ar/forms.py +++ b/django/contrib/localflavor/ar/forms.py @@ -24,7 +24,9 @@ class ARPostalCodeField(RegexField): """ A field that accepts a 'classic' NNNN Postal Code or a CPA. - See http://www.correoargentino.com.ar/consulta_cpa/home.php + See: + http://www.correoargentino.com.ar/cpa/que_es + http://www.correoargentino.com.ar/cpa/como_escribirlo """ default_error_messages = { 'invalid': _("Enter a postal code in the format NNNN or ANNNNAAA."), @@ -120,8 +122,7 @@ class ARCUITField(RegexField): return str(result) def _format(self, cuit, check_digit=None): - if check_digit == None: + if check_digit is None: check_digit = cuit[-1] cuit = cuit[:-1] return '%s-%s-%s' % (cuit[:2], cuit[2:], check_digit) - |
