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

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

src/d/j/django-natural-query-HEAD/tests/functional/test_one_to_one_relationship_id_queries.py   django-natural-query(Download)
    def setUp(self):
        one2one_1 = TestModel2.objects.create(id=1)
        one2one_2 = TestModel2.objects.create(id=2)
        one2one_3 = TestModel2.objects.create(id=3)
 

src/d/j/django-natural-query-HEAD/tests/functional/test_foreign_key_id_queries.py   django-natural-query(Download)
    def setUp(self):
        fk_1 = TestModel2.objects.create(id=1)
        fk_2 = TestModel2.objects.create(id=2)
 
        TestModel.objects.create(id=1, fk=fk_1)