db.models.Lookup.process_rhs()

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

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.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.Manager.raw()

Manager.raw(raw_query, params=None, translations=None) This method takes a raw SQL query, executes it, and returns a django.db.models.query.RawQuerySet instance. This RawQuerySet instance can be iterated over just like a normal QuerySet to provide object instances. This is best illustrated with an example. Suppose you have the following model: class Person(models.Model): first_name = models.CharField(...) last_name = models.CharField(...) birth_date = models.DateField(...) You c

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

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.

db.models.Lookup.lhs

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

db.models.ImageField.width_field

ImageField.width_field Name of a model field which will be auto-populated with the width of the image each time the model instance is saved. Requires the Pillow library. ImageField instances are created in your database as varchar columns with a default max length of 100 characters. As with other fields, you can change the maximum length using the max_length argument. The default form widget for this field is a ClearableFileInput.

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 "__".