summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/utils.txt6
-rw-r--r--docs/releases/1.5.txt3
2 files changed, 7 insertions, 2 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index c2f2025bc3..5157c399da 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -504,11 +504,13 @@ escaping HTML.
.. function:: base36_to_int(s)
- Converts a base 36 string to an integer.
+ Converts a base 36 string to an integer. On Python 2 the output is
+ guaranteed to be an :class:`int` and not a :class:`long`.
.. function:: int_to_base36(i)
- Converts a positive integer less than sys.maxint to a base 36 string.
+ Converts a positive integer to a base 36 string. On Python 2 ``i`` must be
+ smaller than :attr:`sys.maxint`.
``django.utils.safestring``
===========================
diff --git a/docs/releases/1.5.txt b/docs/releases/1.5.txt
index aae8b25e07..968d63e1f3 100644
--- a/docs/releases/1.5.txt
+++ b/docs/releases/1.5.txt
@@ -244,6 +244,9 @@ Miscellaneous
* GeoDjango dropped support for GDAL < 1.5
+* :func:`~django.utils.http.int_to_base36` properly raises a :exc:`TypeError`
+ instead of :exc:`ValueError` for non-integer inputs.
+
Features deprecated in 1.5
==========================