def METHOD_NAME(self, item, partner_name, partner_sku, price, num_in_stock):
    # Create partner and stock record
    partner, _ = Partner.objects.get_or_create(name=partner_name)
    try:
        stock = StockRecord.objects.get(partner_sku=partner_sku)
    except StockRecord.DoesNotExist:
        stock = StockRecord()
    stock.product = item
    stock.partner = partner
    stock.partner_sku = partner_sku
    stock.price = D(price)
    stock.num_in_stock = num_in_stock
    stock.save()