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

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

src/d/j/django-oscar-fancypages-HEAD/oscar_fancypages/fancypages/views.py   django-oscar-fancypages(Download)
from django.db.models import get_model
 
from oscar.apps.catalogue.views import ProductCategoryView
 
from . import mixins
 
FancyPage = get_model('fancypages', 'FancyPage')
 
 
class FancyPageDetailView(mixins.OscarFancyPageMixin, ProductCategoryView):
class FancyHomeView(mixins.OscarFancyHomeMixin, ProductCategoryView):
    model = FancyPage
    context_object_name = 'fancypage'
 

src/d/j/django-oscar-HEAD/tests/functional/catalogue/catalogue_tests.py   django-oscar(Download)
 
from oscar.test.factories import create_product
from oscar.apps.catalogue.views import ProductCategoryView