From 518eaf1fa2d86dc1b0ba7adba22b30bcc8f3a497 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 18 Aug 2016 19:48:28 -0400 Subject: [PATCH] Fixed #26807 -- Documented how to replicate SubfieldBase's assignment behavior. --- docs/releases/1.8.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt index d0f115db6e..706d2dc109 100644 --- a/docs/releases/1.8.txt +++ b/docs/releases/1.8.txt @@ -1477,9 +1477,13 @@ It's a legacy option that should no longer be necessary. will be removed in Django 1.10. Historically, it was used to handle fields where type conversion was needed when loading from the database, but it was not used in ``.values()`` calls or in aggregates. It has been replaced with -:meth:`~django.db.models.Field.from_db_value`. Note that the new approach does -not call the :meth:`~django.db.models.Field.to_python` method on assignment -as was the case with ``SubfieldBase``. +:meth:`~django.db.models.Field.from_db_value`. + +The new approach doesn't call the :meth:`~django.db.models.Field.to_python` +method on assignment as was the case with ``SubfieldBase``. If you need that +behavior, reimplement the ``Creator`` class `from Django's source code +`_ +in your project. ``django.utils.checksums`` --------------------------