![](/img/trans.png)
[英]During a django model's object creation, how to pop out and save a value from a JSON array stored in JSONField of another model's object?
我正在 django 建立一個網站,用戶可以在其中購買軟件的激活密鑰。 現在這些鍵的數量有限,所有這些鍵現在都存儲在名為 Software 的 django model 的 JSONField 中的 json 數組中。 每當用戶購買密鑰時,都會創建 PurchasedKey model 的 obj ...