这是我在models.py
qty = models.PositiveIntegerField(default='empty')
任何想法!
答案 0 :(得分:0)
const array = [
{club: "Club A", number: 12},
{club: "Club B", number: 12}
]
// find the correct item
let item = array.find(item => item.club == "Club A")
item.member = ["a", "b"]
console.log(array)
必须为正整数,而'empty'不是。试试
PositiveIntegerField