के लिये एक अवैध कीवर्ड तर्क है मैं त्रुटि मिलती है:Django मॉडल त्रुटि- "लेखन त्रुटि: 'xxx' इस समारोह
TypeError: 'person' is an invalid keyword argument for this function
मेरे मॉडल है:
class Investment(models.Model):
company = models.ManyToManyField("Company", related_name ="Investments_company")
financial_org = models.ManyToManyField("Financial_org", related_name ="Investments_financial_org")
person = models.ManyToManyField("Person", related_name ="Investments_person")
मेरा परीक्षण (जो देता है त्रुटि):
investment1 = Investment(company = [], financial_org = financial1, person = [])
आपने अपना जीवन बचाया। धन्यवाद। –
यह कैसे जीवन बचा सकता है? दयालु शब्दों के लिए धन्यवाद हालांकि xD – jpic
मित्र, इस समाधान के लिए धन्यवाद, मुझे बहुत सेवा दी। –