The main change here that django.db.models.SubfieldBase is now removed. As suggested in this class, they suggest to use from_db_value, and this is what I did here, a related question in stackoverflow:
The other thing that we lost as django.db.models.SubfieldBase is removed now is setting model field as class field. You can see that some of the test below had to field in a different way. Hopefully I fixed it in the right now.
@danaspiegel @waseem-omar Please review and let me know for any feedback.
The main change here that
django.db.models.SubfieldBase
is now removed. As suggested in this class, they suggest to usefrom_db_value
, and this is what I did here, a related question in stackoverflow:http://stackoverflow.com/questions/35166085/how-to-deal-with-subfieldbase-has-been-deprecated-use-field-from-db-value-inst
The other thing that we lost as
django.db.models.SubfieldBase
is removed now is setting model field as class field. You can see that some of the test below had to field in a different way. Hopefully I fixed it in the right now. @danaspiegel @waseem-omar Please review and let me know for any feedback.