get_lookup(lookup_name) Returns the Lookup named lookup_name registered in the class. The default
get_transform(transform_name) Returns a Transform named transform_name. The default implementation
process_lhs(compiler, connection, lhs=None) [source] Returns a tuple (lhs_string, lhs_params)
as_sql(self, compiler, connection) Responsible for producing the query string and parameters for the expression. The compiler
output_field Defines the class this transformation outputs. It must be a
lookup_name The name of this lookup, used to identify it on parsing query expressions. It cannot contain the string "__"
output_field Defines the type of class returned by the get_lookup() method. It must be a
lookup_name The name of the lookup, used for identifying it on parsing query expressions. It cannot contain the string "__"
process_rhs(compiler, connection) [source] Behaves the same way as process_lhs()
get_transform(transform_name) Must return the lookup named transform_name. For instance, by returning self
Page 1 of 2