Did I find the right examples for you? yes no

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

src/d/j/django-lfs-0.7.7/lfs/utils/generator.py   django-lfs(Download)
    # Create categories
    category_1 = Category(name="Clothes", slug="clothes")
    category_1.save()
 
    category_2 = Category(name="Women", slug="women", parent=category_1)
    category_2.save()
 
    category_3 = Category(name="Pants", slug="pants-woman", parent=category_2)
    category_3.save()
 
    category_4 = Category(name="Dresses", slug="dresses", parent=category_2)
    category_4.save()
 
    category_5 = Category(name="Men", slug="men", parent=category_1)
    category_5.save()

src/l/f/lfs-HEAD/utils/generator.py   lfs(Download)
    for i in range(0, 10):        
        c = Category(name="Category %s" % i, slug="category-%s" % i)
        c.save()
        for j in range(0, 3):
            sc = Category(name="Category %s%s" % (i, j), slug="category-%s-%s" % (i, j), parent=c)
            sc.save()
            for k in range(0, 3):
                ssc = Category(name="Category %s%s%s" % (i, j, k), slug="category-%s-%s-%s" % (i, j, k), parent=sc)
                ssc.save()
    # Create categories
    category_1 = Category(name="Clothes", slug="clothes")
    category_1.save()
 
    category_2 = Category(name="Women", slug="women", parent=category_1)
    category_2.save()

src/d/j/django-lfs-HEAD/lfs/utils/generator.py   django-lfs(Download)
    # Create categories
    category_1 = Category(name="Clothes", slug="clothes")
    category_1.save()
 
    category_2 = Category(name="Women", slug="women", parent=category_1)
    category_2.save()
 
    category_3 = Category(name="Pants", slug="pants-woman", parent=category_2)
    category_3.save()
 
    category_4 = Category(name="Dresses", slug="dresses", parent=category_2)
    category_4.save()
 
    category_5 = Category(name="Men", slug="men", parent=category_1)
    category_5.save()

src/l/f/lfs-HEAD/tests/products.py   lfs(Download)
 
        c1 = Category(name="Category 1", slug="category-1")        
        c1.save()
 
        c11 = Category(name="Category 1-1", slug="category-1-1", parent=c1)
        c11.save()
 
        c111 = Category(name="Category 1-1-1", slug="category-1-1-1", parent=c11)
        c111.save()

src/l/f/lfs-HEAD/tests/categories.py   lfs(Download)
        # Create a simple category structure    
        category_1 = Category(name="Category 1", slug="category-1")
        category_1.save()
 
        category_2 = Category(name="Category 2", slug="category-2")
        category_2.save()
 
        category_1_1 = Category(name="Category 1-1", slug="category-1-1", parent=category_1)
        category_1_1.save()
 
        category_1_1_1 = Category(name="Category 1-1-1", slug="category-1-1-1", parent=category_1_1)
        category_1_1_1.save()
 
    def test_category_creation(self):

src/d/j/django-lfs-HEAD/lfs/tests/products.py   django-lfs(Download)
 
        c1 = Category(name="Category 1", slug="category-1")
        c1.save()
 
        c11 = Category(name="Category 1-1", slug="category-1-1", parent=c1)
        c11.save()
 
        c111 = Category(name="Category 1-1-1", slug="category-1-1-1", parent=c11)
        c111.save()

src/d/j/django-lfs-HEAD/lfs/tests/categories.py   django-lfs(Download)
        # Create a simple category structure
        category_1 = Category(name="Category 1", slug="category-1")
        category_1.save()
 
        category_2 = Category(name="Category 2", slug="category-2")
        category_2.save()
 
        category_1_1 = Category(name="Category 1-1", slug="category-1-1", parent=category_1)
        category_1_1.save()
 
        category_1_1_1 = Category(name="Category 1-1-1", slug="category-1-1-1", parent=category_1_1)
        category_1_1_1.save()
 
    def test_category_creation(self):

src/d/j/django-lfs-0.7.7/lfs/tests/products.py   django-lfs(Download)
 
        c1 = Category(name="Category 1", slug="category-1")
        c1.save()
 
        c11 = Category(name="Category 1-1", slug="category-1-1", parent=c1)
        c11.save()
 
        c111 = Category(name="Category 1-1-1", slug="category-1-1-1", parent=c11)
        c111.save()

src/d/j/django-lfs-0.7.7/lfs/tests/categories.py   django-lfs(Download)
        # Create a simple category structure
        category_1 = Category(name="Category 1", slug="category-1")
        category_1.save()
 
        category_2 = Category(name="Category 2", slug="category-2")
        category_2.save()
 
        category_1_1 = Category(name="Category 1-1", slug="category-1-1", parent=category_1)
        category_1_1.save()
 
        category_1_1_1 = Category(name="Category 1-1-1", slug="category-1-1-1", parent=category_1_1)
        category_1_1_1.save()
 
    def test_category_creation(self):