code: def query(self, value):
          
          if not isinstance(value, Q):
              raise Exception('Must only be passed a Django (Q)uery object')
          s = QSerializer(base64=True)
          self.b64_query = s.dumps(value)
docs: Serialize an ORM query, Base-64 encode it and set it to
          the b64_query field