标签: python orm foreign-keys peewee
edited_by_user = ForeignKeyField(User, null=True)
记录被删除但仍然具有其他表的引用后, 如果我访问*DoesNotExist: instance matching query does not exist
*DoesNotExist: instance matching query does not exist
record.edited_by_user
我如何摆脱它,因为外键为null,返回None?