{"version":"1.0","type":"rich","title":"Gist 8865235","description":"A Django model method updates inventory records by deleting any stock counts with a timestamp at or after a given time, then inserting a new count for that item. The `set_stock_count` function filters `StockCount.objects` using `timestamp__gte`, removes matching entries, and creates a fresh record with the supplied stock level. This demonstrates a time-series upsert pattern for tracking product availability over time, though the code shows no visualization logic, only the data-management layer.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-8865235?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}