Пример #1
0
 def test_chain_filters(self):
     queryset = TestObj.objects.all()
     orm_pqs = OrmPredicateQuerySet(queryset)
     filtered = orm_pqs.filter(int_value=10, char_value='foo')
     filtered.filter(int_value__in=[1, 2])
Пример #2
0
 def test_chain_filters(self):
     queryset = TestObj.objects.all()
     orm_pqs = OrmPredicateQuerySet(queryset)
     filtered = orm_pqs.filter(int_value=10, char_value='foo')
     filtered.filter(int_value__in=[1, 2])
Пример #3
0
 def test_filter(self):
     queryset = TestObj.objects.all()
     orm_pqs = OrmPredicateQuerySet(queryset)
     orm_pqs.filter(int_value__lt=50)
Пример #4
0
 def test_filter(self):
     queryset = TestObj.objects.all()
     orm_pqs = OrmPredicateQuerySet(queryset)
     orm_pqs.filter(int_value__lt=50)