在添加了“外键”之后,makemigrations命令就开始工作了。python manage.py迁移命令将给出错误:
File "/Library/Python/2.7/site-packages/django/db/backends/mysql/base.pysite-packages/MySQLdb/connections.py", line 36, in defaulterrorh
我一直在用我的测试应用研究和玩django,我想在这个问题上寻求帮助。我的问题在于Educational_Requirement,因为我通过表单的ModelChoiceField在我的前端显示它,并覆盖queryset以显示正确的选择。coercing to Unicode: need string or buffer, Courses_list found
我真的需要在__unicode__中设置Educational_Requirement并添加