Closed jxcl closed 9 years ago
(Note: super() may not be called in from_db_value())
Why?
It's in one of the links I posted: https://docs.djangoproject.com/en/1.8/ref/models/fields/#django.db.models.Field.from_db_value
Where's the test?
This should be mergeable
In Django 1.8 to_python is not automatically called by SubfieldBase any more. Django 1.8 provides a new method: from_db_value.
See: https://docs.djangoproject.com/en/1.8/howto/custom-model-fields/#converting-values-to-python-objects https://docs.djangoproject.com/en/1.8/ref/models/fields/#django.db.models.Field.from_db_value
(Note: super() may not be called in from_db_value())