You are trying to add a non-nullable field ‘cat’ to archive without a default; we can’t do that (the database needs something to populate existing rows).
Please select a fix:
- Provide a one-off default now (will be set on all existing rows with a null value for this column)
- Quit, and let me add a default in models.py
models.ForeignKey类型字段没设置默认值,或者默认不允许为null。