Deprecated clandestine base to call to_python on assignment?

According to docs , it SubfieldBasewill be removed in 1.10 and replaced withfrom_db_value()

What puzzles me:

Note that the new approach does not invoke the method to_python()on assignment, as is the case with SubfieldBase.

I thought that was the main point SubfieldBase. What is the best way to do a value assignment check in> = 1.9?

+4
source share
1 answer

to_python . from_db_value. python DB. , .

+1

Source: https://habr.com/ru/post/1618722/


All Articles