在添加一个新字段作为外键后,我遇到了一个问题: 一开始,我的模型是这样的: class Book(models.Model): name = models.CharField(max_length=后来,我尝试运行python3 manage.py migrate命令,但它抛出了以下错误: TypeError
TypeError: int() argument must be a string or a number, not 'User'这里是回溯:Synchronizeline 10, in <module>File "/usr/local/lib/python2.7/dist-packages/django/d
您好,下面是我在models.py中添加的特定行这就是在makemigrations中发生的事情,我想我添加了一个不可为空的字段/db/models/fields/__init__.py", line 797, in get_default TypeError: Requiredargument 'year' (pos 1) not foun