Did I find the right examples for you? yes no

All Samples(52)  |  Call(52)  |  Derive(0)  |  Import(0)

src/l/f/lfs-HEAD/utils/views.py   lfs(Download)
    for row in reader:
        category = Category.objects.create(
            name = row[2],
            slug = slugify(row[1]),
            description = row[6]

src/d/j/django-lfs-HEAD/lfs/catalog/tests.py   django-lfs(Download)
        self.p3 = Product.objects.create(slug="product-3", price=1, active=True)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.products = [self.p1, self.p2, self.p3]
        self.c1.save()
        self.p3 = Product.objects.create(slug="product-3", price=1, active=True, manufacturer=self.m2)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.products = [self.p1, self.p2, self.p3]
        self.c1.save()
        self.p3 = Product.objects.create(name="Product 3", slug="product-3", price=1, active=True)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.products = [self.p1, self.p2, self.p3]
        self.c1.save()
        self.p3 = Product.objects.create(name="Product 3", slug="product-3", price=1)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.products = [self.p1, self.p2, self.p3]
        self.c1.save()
 
        # Create a category hierachy
        self.c1 = Category.objects.create(name="Category 1", slug="category-1",
            short_description="Short description category 1")
        self.c11 = Category.objects.create(name="Category 11", slug="category-11", parent=self.c1, position=10)

src/d/j/django-lfs-0.7.7/lfs/catalog/tests.py   django-lfs(Download)
        self.p3 = Product.objects.create(slug="product-3", price=1, active=True)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.products = [self.p1, self.p2, self.p3]
        self.c1.save()
        self.p3 = Product.objects.create(name="Product 3", slug="product-3", price=1, active=True)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.products = [self.p1, self.p2, self.p3]
        self.c1.save()
        self.p3 = Product.objects.create(name="Product 3", slug="product-3", price=1)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.products = [self.p1, self.p2, self.p3]
        self.c1.save()
 
        # Create a category hierachy
        self.c1 = Category.objects.create(name="Category 1", slug="category-1",
            short_description="Short description category 1")
        self.c11 = Category.objects.create(name="Category 11", slug="category-11", parent=self.c1, position=10)

src/l/f/lfs-HEAD/catalog/tests.py   lfs(Download)
        self.p3 = Product.objects.create(slug="product-3", price=1, active=True)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.products = [self.p1, self.p2, self.p3]
        self.c1.save()
        self.p3 = Product.objects.create(name="Product 3", slug="product-3", price=1, active=True)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.products = [self.p1, self.p2, self.p3]
        self.c1.save()
        self.p3 = Product.objects.create(name="Product 3", slug="product-3", price=1)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.products = [self.p1, self.p2, self.p3]
        self.c1.save()
 
        # Create a category hierachy
        self.c1 = Category.objects.create(name="Category 1", slug="category-1",
            short_description="Short description category 1")
        self.c11 = Category.objects.create(name="Category 11", slug="category-11", parent=self.c1)

src/d/j/django-lfs-0.7.7/lfs/marketing/tests.py   django-lfs(Download)
        self.p1 = Product.objects.create(name="Product 1", slug="product-1", active=True)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.save()
        self.c1.products = (self.p1, )
        self.p4 = Product.objects.create(name="Product 4", slug="product-4", active=True)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.save()
 
        self.c11 = Category.objects.create(name="Category 11", slug="category-11", parent=self.c1)
        self.c11.products = (self.p1, self.p2)
        self.c11.save()
 
        self.c12 = Category.objects.create(name="Category 12", slug="category-12", parent=self.c1)

src/d/j/django-lfs-HEAD/lfs/marketing/tests.py   django-lfs(Download)
        self.p1 = Product.objects.create(name="Product 1", slug="product-1", active=True)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.save()
        self.c1.products = (self.p1, )
        self.p4 = Product.objects.create(name="Product 4", slug="product-4", active=True)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.save()
 
        self.c11 = Category.objects.create(name="Category 11", slug="category-11", parent=self.c1)
        self.c11.products = (self.p1, self.p2)
        self.c11.save()
 
        self.c12 = Category.objects.create(name="Category 12", slug="category-12", parent=self.c1)

src/l/f/lfs-HEAD/marketing/tests.py   lfs(Download)
        self.p1 = Product.objects.create(name="Product 1", slug="product-1", active=True)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.save()
        self.c1.products = (self.p1, )
        self.p4 = Product.objects.create(name="Product 4", slug="product-4", active=True)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.save()
 
        self.c11 = Category.objects.create(name="Category 11", slug="category-11", parent=self.c1)
        self.c11.products = (self.p1, self.p2)
        self.c11.save()
 
        self.c12 = Category.objects.create(name="Category 12", slug="category-12", parent=self.c1)

src/d/j/django-lfs-HEAD/lfs/manufacturer/tests.py   django-lfs(Download)
        self.p3 = Product.objects.create(slug="product-3", price=1, active=True)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.products = [self.p1, self.p2, self.p3]
        self.c1.save()
        self.p3 = Product.objects.create(name="Product 3", slug="product-3", price=1, active=True)
 
        self.c1 = Category.objects.create(name="Category 1", slug="category-1")
        self.c1.products = [self.p1, self.p2, self.p3]
        self.c1.save()