Did I find the right examples for you? yes no

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

src/d/j/django-lfs-0.7.7/lfs/manage/views/utils.py   django-lfs(Download)
def reindex_topseller(request):
    """Clears and reindexes the topsellers.
    """
    lfs.marketing.utils.calculate_product_sales()
    return lfs.core.utils.set_message_cookie(

src/d/j/django-lfs-HEAD/lfs/manage/views/utils.py   django-lfs(Download)
def reindex_topseller(request):
    """Clears and reindexes the topsellers.
    """
    lfs.marketing.utils.calculate_product_sales()
    return lfs.core.utils.set_message_cookie(

src/d/j/django-lfs-HEAD/lfs/marketing/tests.py   django-lfs(Download)
import lfs.marketing.utils
from lfs.marketing.models import Topseller
from lfs.marketing.utils import calculate_product_sales
from lfs.order.models import Order
from lfs.order.models import OrderItem
        self.oi4 = OrderItem.objects.create(order=self.o, product_amount=4, product=self.p4)
 
        calculate_product_sales()
 
    def test_calculate_product_sales(self):
        calculate_product_sales()
        self.oi1.save()
 
        calculate_product_sales()
 
    def test_topseller_1(self):

src/d/j/django-lfs-0.7.7/lfs/marketing/tests.py   django-lfs(Download)
import lfs.marketing.utils
from lfs.marketing.models import Topseller
from lfs.marketing.utils import calculate_product_sales
from lfs.order.models import Order
from lfs.order.models import OrderItem
        self.oi4 = OrderItem.objects.create(order=self.o, product_amount=4, product=self.p4)
 
        calculate_product_sales()
 
    def test_calculate_product_sales(self):
        calculate_product_sales()
        self.oi1.save()
 
        calculate_product_sales()
 
    def test_topseller_1(self):