{"version":"1.0","type":"rich","title":"Gist 7d3d2123ca922c2ab231","description":"This example demonstrates a code snippet that creates a stock order in a Django-based inventory system. It shows the sequence of operations: instantiating a `PurchaseOrder` with a given supplier, adding a row with the specified quantity, and attaching a hidden arrival event for the creation date and location. The code relies on Django’s object-relational model (`PurchaseOrder.objects.create` and related row creation) to persist the order. It also uses a custom method (`add_hidden_arrival`) to link the order to a location, illustrating how business logic can be embedded in model methods rather than external visualization tools. The rendering approach is not visual; it is a server-side data-handling example.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-7d3d2123ca922c2ab231?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}