db.models.Transform.bilateral

bilateral A boolean indicating whether this transformation should apply to both lhs and rhs. Bilateral transformations will be applied to rhs in the same order as they appear in the lookup expression. By default it is set to False. For example usage, see Custom Lookups.

apps.AppConfig.name

AppConfig.name Full Python path to the application, e.g. 'django.contrib.admin'. This attribute defines which application the configuration applies to. It must be set in all AppConfig subclasses. It must be unique across a Django project.

db.models.fields.files.FieldFile.size

FieldFile.size The result of the underlying Storage.size() method.

sessions.middleware.SessionMiddleware

class SessionMiddleware [source] Enables session support. See the session documentation.

views.generic.edit.ModelFormMixin.get_success_url()

get_success_url() Determine the URL to redirect to when the form is successfully validated. Returns django.views.generic.edit.ModelFormMixin.success_url if it is provided; otherwise, attempts to use the get_absolute_url() of the object.

db.models.fields.files.FieldFile.open()

FieldFile.open(mode='rb') [source] Opens or reopens the file associated with this instance in the specified mode. Unlike the standard Python open() method, it doesn’t return a file descriptor. Since the underlying file is opened implicitly when accessing it, it may be unnecessary to call this method except to reset the pointer to the underlying file or to change the mode.

db.models.fields.files.FieldFile.delete()

FieldFile.delete(save=True) [source] Deletes the file associated with this instance and clears all attributes on the field. Note: This method will close the file if it happens to be open when delete() is called. The optional save argument controls whether or not the model instance is saved after the file associated with this field has been deleted. Defaults to True. Note that when a model is deleted, related files are not deleted. If you need to cleanup orphaned files, you’ll need to handle

forms.Widget.value_omitted_from_data()

value_omitted_from_data(data, files, name) [source] New in Django 1.10.2. Given data and files dictionaries and this widget’s name, returns whether or not there’s data or files for the widget. The method’s result affects whether or not a field in a model form falls back to its default. Special cases are CheckboxInput and CheckboxSelectMultiple, which always return False because an unchecked checkbox doesn’t appear in the data of an HTML form submission, so it’s unknown whether or not the u

admin.ModelAdmin.object_history_template

ModelAdmin.object_history_template Path to a custom template, used by history_view().

db.models.Field.error_messages

Field.error_messages The error_messages argument lets you override the default messages that the field will raise. Pass in a dictionary with keys matching the error messages you want to override. Error message keys include null, blank, invalid, invalid_choice, unique, and unique_for_date. Additional error message keys are specified for each field in the Field types section below.