Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/l/f/lfs-HEAD/manage/views/shipping.py   lfs(Download)
    for i, price in enumerate(shipping_method.prices.all()):
        price.priority = i+1
        price.save()
 
    message = _(u"Price has been added")

src/l/f/lfs-HEAD/manage/views/payment.py   lfs(Download)
    for i, price in enumerate(payment_method.prices.all()):
        price.priority = i+1
        price.save()
 
    message = _(u"Price has been added")