報錯提示:
xxxx
HINT: Add or change a related_name argument to the definition for xxxx
解決辦法:
models.ManyToManyField(MacInfo, related_name="master_macinfo")
在設置外鍵的地方設置related_name
報錯提示:
xxxx
HINT: Add or change a related_name argument to the definition for xxxx
解決辦法:
models.ManyToManyField(MacInfo, related_name="master_macinfo")
在設置外鍵的地方設置related_name
1.while循環的格式 while 條件: 條件滿足時,做的事情1 條件滿足時,做的事情2 條件滿足時,做的事情3 ...(省略)... demo