Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/s/a/saleor-HEAD/saleor/order/models.py   saleor(Download)
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import pgettext_lazy
from django_prices.models import PriceField
from model_utils.managers import InheritanceManager
from payments import PurchasedItem
    order = models.ForeignKey(Order, related_name='groups', editable=False)
    price = PriceField(
        pgettext_lazy('Delivery group field', 'unit price'),
        currency=settings.DEFAULT_CURRENCY, max_digits=12,
        decimal_places=4,

src/s/a/saleor-HEAD/saleor/product/models/discounts.py   saleor(Download)
from django.utils.translation import pgettext_lazy
from django.utils.encoding import python_2_unicode_compatible
from django_prices.models import PriceField
from prices import FixedDiscount
 
class FixedProductDiscount(models.Model):
    name = models.CharField(max_length=255)
    products = models.ManyToManyField(Product, blank=True)
    discount = PriceField(pgettext_lazy('Discount field', 'discount value'),
                          currency=settings.DEFAULT_CURRENCY,

src/s/a/saleor-HEAD/saleor/product/models/variants.py   saleor(Download)
from django.utils.translation import pgettext_lazy
from satchless.item import Item, StockedItem
from django_prices.models import PriceField
from django.conf import settings
from django.core.urlresolvers import reverse
        max_digits=6, decimal_places=2, blank=True, default=0)
    price = PriceField(
        pgettext_lazy('Product field', 'price'),
        currency=settings.DEFAULT_CURRENCY, max_digits=12, decimal_places=4)