當我更改模型「位置」中的兩個字段時,我收到錯誤'bool'對象沒有屬性'startswith'。我試圖用Django的智能選擇(ChainedForeignKey) from smart_selects.db_fields import ChainedForeignKey
class ListOfContinents(models.Model):
id_Continent = mod
我試過使用django-smart-select。(ChainedForeignKey)。但模板不會顯示 的值無錯誤,但我看不到字段國家/地區中的值列表。 Country field picture: 也許我在ChainedForeignKey(),我不明白加錯了屬性=(請幫我解決它感謝 Models.py: from smart_selects.db_fields import ChainedF