Hi,
-- according to the docs, SubfieldBase is going to be removed in 1.10 and replaced by from_db_value()
https://docs.djangoproject.com/en/1.9/releases/1.8/#subfieldbase
What puzzles me is this:
"Note that the new approach does not call the to_python() method on assignment as was the case with SubfieldBase."
I thought that was the main point of SubfieldBase. Is there any replacement to this / what is the best way to do it if I'd like to call to_python on assignment?
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f8ec10a4-b70b-4380-b6c5-d6ced96def14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment