问题描述
/python3.4/site-packages/django/db/models/fields/subclassing.py:22:RemovedInDjango110警告:SubfieldBase已被弃用。请改用Field.from_db_value。
RemovedInDjango110Warning)
自升级到Django 1.9以来,我开始在 runserver
启动。问题是我不知道它来自哪里。我猜想它必须来自 forms.py
。有人有线索吗?
我使用 python-social-auth 0.2时遇到这个错误。 13
。如果您使用 python-social-auth
,我在。这扩展了的另一个修复程序。
订阅这两个拉请求,如果/当两个拉请求合并到 master
分支中时,您将不再看到警告。 / p>
/python3.4/site-packages/django/db/models/fields/subclassing.py:22: RemovedInDjango110Warning: SubfieldBase has been deprecated. Use Field.from_db_value instead.
RemovedInDjango110Warning)
Since I upgraded to Django 1.9 I started having this warning on runserver
startup. The problem is that I have no idea where it comes from. I am guessing it must be from forms.py
. Does anyone have a clue?
I experienced this error while using python-social-auth 0.2.13
. If you are using python-social-auth
, I submitted a fix for this on GitHub, just now. This extends another fix submitted here.
Subscribe to both of those pull requests and if/when both pull requests are merged into the master
branch, you will no longer see the warning.
这篇关于SubfieldBase已被弃用。请改用Field.from_db_value的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!