db.models.lookups.RegisterLookupMixin.get_transform()

get_transform(transform_name) Returns a Transform named transform_name. The default implementation looks recursively on all parent classes to check if any has the registered transform named transform_name, returning the first match.

db.models.lookups.RegisterLookupMixin.get_lookup()

get_lookup(lookup_name) Returns the Lookup named lookup_name registered in the class. The default implementation looks recursively on all parent classes and checks if any has a registered lookup named lookup_name, returning the first match.

db.models.lookups.RegisterLookupMixin

class lookups.RegisterLookupMixin A mixin that implements the lookup API on a class. classmethod register_lookup(lookup, lookup_name=None) Registers a new lookup in the class. For example DateField.register_lookup(YearExact) will register YearExact lookup on DateField. It overrides a lookup that already exists with the same name. lookup_name will be used for this lookup if provided, otherwise lookup.lookup_name will be used. Changed in Django 1.9: The lookup_name parameter was added.

db.models.Lookup.rhs

rhs The right-hand side - what lhs is being compared against. It can be a plain value, or something that compiles into SQL, typically an F() object or a QuerySet.

db.models.Lookup.process_rhs()

process_rhs(compiler, connection) [source] Behaves the same way as process_lhs(), for the right-hand side.

db.models.Lookup.process_lhs()

process_lhs(compiler, connection, lhs=None) [source] Returns a tuple (lhs_string, lhs_params), as returned by compiler.compile(lhs). This method can be overridden to tune how the lhs is processed. compiler is an SQLCompiler object, to be used like compiler.compile(lhs) for compiling lhs. The connection can be used for compiling vendor specific SQL. If lhs is not None, use it as the processed lhs instead of self.lhs.

db.models.Lookup.lookup_name

lookup_name The name of this lookup, used to identify it on parsing query expressions. It cannot contain the string "__".

db.models.Lookup.lhs

lhs The left-hand side - what is being looked up. The object must follow the Query Expression API.

db.models.Lookup

class Lookup [source] A Lookup is a generic class to implement lookups. A lookup is a query expression with a left-hand side, lhs; a right-hand side, rhs; and a lookup_name that is used to produce a boolean comparison between lhs and rhs such as lhs in rhs or lhs > rhs. The notation to use a lookup in an expression is <lhs>__<lookup_name>=<rhs>. This class doesn’t follow the Query Expression API since it has =<rhs> on its construction: lookups are always the end of

db.models.IntegerField

class IntegerField(**options) [source] An integer. Values from -2147483648 to 2147483647 are safe in all databases supported by Django. The default form widget for this field is a NumberInput when localize is False or TextInput otherwise.