当前位置: 代码迷 >> 综合 >> You are trying to add a non-nullable field ‘info‘ to room without a default; we can‘t do that (the d
  详细解决方案

You are trying to add a non-nullable field ‘info‘ to room without a default; we can‘t do that (the d

热度:75   发布时间:2023-11-27 21:42:05.0

只需要在新增的那个字段上设置默认值

info = models.CharField(verbose_name='房间信息',max_length=200,default='')

  相关解决方案