xadmin ,django 1.11,python3.6 弃用 RadioField ......

来源:5-2 xadmin的安装

yansima

2017-12-25

django 1.11官方如下说:

Changes due to the introduction of template-based widget rendering¶

Some undocumented classes in django.forms.widgets are removed:

SubWidget

RendererMixin, ChoiceFieldRenderer, RadioFieldRenderer, CheckboxFieldRenderer

ChoiceInput, RadioChoiceInput, CheckboxChoiceInput

The undocumented Select.render_option() method is removed.

The Widget.format_output() method is removed. Use a custom widget template instead.

Some widget values, such as <select> options, are now localized if settings.USE_L10N=True. You could revert to the old behavior with custom widget templates that uses the localize template tag to turn off localization.

我的理解就是已经弃用了.widget 这个模块,而里面的RadioField.....类都不被使用,而xadmin 要用到这些,如何是好?

我的是python3.6 django 1.11

有没有共同出问题的小朋友????


写回答

1回答

bobby

2017-12-27

课程已经新加章节升级了django和python3.6 你按照课程来就行了

0
0

Python3.6+django+xadmin,打造在线教育平台

【毕设】Python 2.7到3.6 完美适配,Django升级2.0

3677 学习 · 4038 问题

查看课程