def query(self, value):
        """
        Serialize an ORM query, Base-64 encode it and set it to
        the b64_query field
        """
        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)
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 )
Serialize an ORM query, Base-64 encode it and set it to
        the b64_query field