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

All Samples(8)  |  Call(3)  |  Derive(0)  |  Import(5)

src/d/j/django-oscar-HEAD/oscar/apps/offer/custom.py   django-oscar(Download)
import six
 
from django.core import exceptions
 
from oscar.apps.offer.models import Range, Condition, Benefit
        obj = Range.objects.get(**values)
    except Range.DoesNotExist:
        obj = Range(**values)
    else:
        for key, value in six.iteritems(values):

src/d/j/django-oscar-0.7/oscar/apps/offer/custom.py   django-oscar(Download)
import six
 
from django.core import exceptions
 
from oscar.apps.offer.models import Range, Condition, Benefit
        obj = Range.objects.get(**values)
    except Range.DoesNotExist:
        obj = Range(**values)
    else:
        for key, value in six.iteritems(values):

src/d/j/django-oscar-HEAD/oscar/apps/offer/views.py   django-oscar(Download)
 
from oscar.core.loading import get_model
from oscar.apps.offer.models import ConditionalOffer, Range
 
Product = get_model('catalogue', 'Product')

src/d/j/django-oscar-0.7/oscar/apps/offer/views.py   django-oscar(Download)
 
from oscar.core.loading import get_model
from oscar.apps.offer.models import ConditionalOffer, Range
 
Product = get_model('catalogue', 'Product')

src/d/j/django-oscar-HEAD/tests/integration/offer/range_tests.py   django-oscar(Download)
    def setUp(self):
        self.range = models.Range(
            name="All products", includes_all_products=True)
 
    def tearDown(self):

src/d/j/django-oscar-HEAD/tests/functional/dashboard/range_tests.py   django-oscar(Download)
from django.test import TestCase
 
from oscar.apps.dashboard.ranges import forms
from oscar.test.factories import create_product
from oscar.apps.offer.models import Range