首页 文章

当我使用django-tabbed-admin为django 2.0 ...版本...我收到错误'str'对象没有属性'__name__'

提问于
浏览
0

/ admin / polls / employee_detail / add /中的AttributeError

'str'对象没有属性' name '

请求方法:GET
请求网址:http://127.0.0.1:8000/admin/polls/employee_detail/add/
Django版本:2.0.4
异常类型:AttributeError
例外 Value :

'str'对象没有属性' name '

异常位置:/home/rashesh/myproj/myvenv/lib/python3.5/site-packages/tabbed_admin/admin.py in parse_fieldsets_inlines_from_tabs,第104行
Python可执行文件:/ home / rashesh / myproj / myvenv / bin / python
Python版本:3.5.2
Python路径:

['/home/rashesh/myproj',
'/usr/lib/python35.zip',
'/usr/lib/python3.5',
'/usr/lib/python3.5/plat-x86_64-linux-gnu',
'/usr/lib/python3.5/lib-dynload',
'/home/rashesh/myproj/myvenv/lib/python3.5/site-packages']

服务器时间:星期二,2018年4月10日09:49:28 0500

3 回答

相关问题