Did I find the right examples for you? yes no

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

src/l/f/lfs-buildout-development-HEAD/scripts/load_data.py   lfs-buildout-development(Download)
    categories = ['animals', 'transport', 'food']
    for cat in categories:
        category, created = Category.objects.get_or_create(name=cat, slug=slugify(cat))
 
    products = ["Cat", "Dog", "Mouse", "Surfboard", "Car", "Ship",

src/d/j/django-lfs-0.7.7/lfs/manage/tests.py   django-lfs(Download)
    def setUp(self):
        for i in range(1, 4):
            cat, created = Category.objects.get_or_create(pk=i, name="cat" + str(i), slug="cat" + str(i), position=10, parent=None)
 
        self.client = Client()

src/d/j/django-lfs-HEAD/lfs/manage/tests.py   django-lfs(Download)
    def setUp(self):
        for i in range(1, 4):
            cat, created = Category.objects.get_or_create(pk=i, name="cat" + str(i), slug="cat" + str(i), position=10,
                                                          parent=None)