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

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Stockrecord selection mixin for use with the ``Structured`` base strategy.
This mixin picks the first (normally only) stockrecord to fulfil a product.

This is backwards compatible with Oscar<0.6 where only one stockrecord per
product was permitted.

src/d/j/django-oscar-HEAD/tests/integration/partner/selector_mixin_tests.py   django-oscar(Download)
    def setUp(self):
        self.product = factories.create_product()
        self.mixin = strategy.UseFirstStockRecord()
 
    def test_selects_first_stockrecord_for_product(self):