Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. current_price = prod['price']
  2.                     tng_provider = Provider.objects.filter(code='TG').first()
  3.                     current_pricing = Pricing.objects.filter(price_from__lt=current_price, price_to__gt=current_price, provider=tng_provider)
  4.                     print(current_pricing)
  5.                     current_coef = current_pricing['coef']
  6.                     product.price_mrc = current_price * current_coef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement