diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-02-24 05:02:00 -0800 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-02-24 05:02:00 -0800 |
| commit | 7106a1e594dc28108e7e4f83af3ffb25289d3bb0 (patch) | |
| tree | 146415347270d1db0f4eeb7b88beee71e2bcbea3 /docs | |
| parent | deb4e097ae2a495480a2907028fc3c76eed0cbb7 (diff) | |
| parent | ade992c61e15fbc83d87bfc688c0f844b6ef19fd (diff) | |
Merge pull request #819 from erikr/master
Fixed #16302 -- Ensured contrib.comments is IPv6 capable.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/1.6.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/releases/1.6.txt b/docs/releases/1.6.txt index c2a3d56c53..c0eabde570 100644 --- a/docs/releases/1.6.txt +++ b/docs/releases/1.6.txt @@ -152,6 +152,30 @@ Backwards incompatible changes in 1.6 {{ title }}{# Translators: Extracted and associated with 'Welcome' below #} <h1>{% trans "Welcome" %}</h1> +* The :doc:`comments </ref/contrib/comments/index>` app now uses a ``GenericIPAddressField`` + for storing commenters' IP addresses, to support comments submitted from IPv6 addresses. + Until now, it stored them in an ``IPAddressField``, which is only meant to support IPv4. + When saving a comment made from an IPv6 address, the address would be silently truncated + on MySQL databases, and raise an exception on Oracle. + You will need to change the column type in your database to benefit from this change. + + For MySQL, execute this query on your project's database: + + .. code-block:: sql + + ALTER TABLE django_comments MODIFY ip_address VARCHAR(39); + + For Oracle, execute this query: + + .. code-block:: sql + + ALTER TABLE DJANGO_COMMENTS MODIFY (ip_address VARCHAR2(39)); + + If you do not apply this change, the behaviour is unchanged: on MySQL, IPv6 addresses + are silently truncated; on Oracle, an exception is generated. No database + change is needed for SQLite or PostgreSQL databases. + + .. warning:: In addition to the changes outlined in this section, be sure to review the |
