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

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

src/d/j/django-cachebot-0.4.1/cachebot/tests/base_tests.py   django-cachebot(Download)
        ctype = ContentType.objects.get_for_model(self.secondmodel)
        self.genericmodel = GenericModel.objects.create(text="test4", content_type=ctype, object_id=self.secondmodel.id)
        self.manymodel = ManyModel.objects.create(text='test5')
        self.manymodel.firstmodel.add(self.firstmodel)
        self.manymodel.thirdmodel.add(self.thirdmodel)

src/d/j/django-cachebot-HEAD/cachebot/tests/base_tests.py   django-cachebot(Download)
        ctype = ContentType.objects.get_for_model(self.secondmodel)
        self.genericmodel = GenericModel.objects.create(text="test4", content_type=ctype, object_id=self.secondmodel.id)
        self.manymodel = ManyModel.objects.create(text='test5')
        self.manymodel.firstmodel.add(self.firstmodel)
        self.manymodel.thirdmodel.add(self.thirdmodel)