          class MockQuerySet:
              def __init__(self, items):
                  self.items = items
  
              def filter(self, created__gt=None, created__lt=None):
                  if created__gt is not None:
                      return MockQuerySet([
                          item for item in self.items
                          if item.created > int(created__gt)
                      ])
 
</s> remove                         if item.created > int(created__gt)
 </s> add                         if item.created is None or item.created > int(created__gt) </s> remove                     if item.created < int(created__lt)
 </s> add                     if item.created is None or item.created < int(created__lt) </s> remove                 has_item_with_unique_position = True
 </s> add                 has_item_with_unique_position = position is not None </s> remove                 has_item_with_unique_position = True
 </s> add                 has_item_with_unique_position = position is not None </s> remove         if current_position is not None:
 </s> add         if str(current_position) != 'None':
            def filter(self, q):
                q_args = dict(q.deconstruct()[1])
                if not q_args:
                    # django 3.0.x artifact
                    q_args = dict(q.deconstruct()[2])
                created__gt = q_args.get('created__gt')
                created__lt = q_args.get('created__lt')

          class MockQuerySet:
              def __init__(self, items):
                  self.items = items
  
            def filter(self, q):
                q_args = dict(q.deconstruct()[1])
                if not q_args:
                    # django 3.0.x artifact
                    q_args = dict(q.deconstruct()[2])
                created__gt = q_args.get('created__gt')
                created__lt = q_args.get('created__lt')

                  if created__gt is not None:
                      return MockQuerySet([
                          item for item in self.items
                          if item.created > int(created__gt)
                      ])
keep keep keep keep replace keep keep keep keep keep
 Ensure CursorPagination respects nulls in the ordering field (#8912)

* Ensure CursorPagination respects nulls in the ordering field

* Lint

* Fix pagination tests

* Add test_ascending with nulls

* Push tests for nulls

* Test pass

* Add comment

* Fix test for django30 
tests/test_pagination.py