db.migrations.operations.AlterIndexTogether

class AlterIndexTogether(name, index_together) [source] Changes the model’s set of custom indexes (the index_together option on the Meta subclass).

db.models.as_vendorname()

as_vendorname(self, compiler, connection) Works like as_sql() method. When an expression is compiled by compiler.compile(), Django will first try to call as_vendorname(), where vendorname is the vendor name of the backend used for executing the query. The vendorname is one of postgresql, oracle, sqlite, or mysql for Django’s built-in backends.

gis.gdal.OGRGeometry.clone()

clone() Returns a new OGRGeometry clone of this geometry object.

core.management.BaseCommand.can_import_settings

BaseCommand.can_import_settings A boolean indicating whether the command needs to be able to import Django settings; if True, execute() will verify that this is possible before proceeding. Default value is True.

core.files.uploadedfile.UploadedFile.chunks()

UploadedFile.chunks(chunk_size=None) A generator returning chunks of the file. If multiple_chunks() is True, you should use this method in a loop instead of read(). In practice, it’s often easiest simply to use chunks() all the time. Looping over chunks() instead of using read() ensures that large files don’t overwhelm your system’s memory. Here are some useful attributes of UploadedFile:

core.files.uploadhandler.FileUploadHandler.upload_complete()

FileUploadHandler.upload_complete() [source] Callback signaling that the entire upload (all files) has completed.

dispatch.Signal.send_robust()

Signal.send_robust(sender, **kwargs) [source] To send a signal, call either Signal.send() (all built-in signals use this) or Signal.send_robust(). You must provide the sender argument (which is a class most of the time) and may provide as many other keyword arguments as you like. For example, here’s how sending our pizza_done signal might look: class PizzaStore(object): ... def send_pizza(self, toppings, size): pizza_done.send(sender=self.__class__, toppings=toppings, size=s

core.files.uploadhandler.MemoryFileUploadHandler

class MemoryFileUploadHandler [source] File upload handler to stream uploads into memory (used for small files).

views.generic.edit.ModelFormMixin.model

model A model class. Can be explicitly provided, otherwise will be determined by examining self.object or queryset.

forms.SelectMultiple

class SelectMultiple [source] Similar to Select, but allows multiple selection: <select multiple='multiple'>...</select>