forms.MultipleChoiceField

class MultipleChoiceField(**kwargs) [source] Default widget: SelectMultiple Empty value: [] (an empty list) Normalizes to: A list of Unicode objects. Validates that every value in the given list of values exists in the list of choices. Error message keys: required, invalid_choice, invalid_list The invalid_choice error message may contain %(value)s, which will be replaced with the selected choice. Takes one extra required argument, choices, as for ChoiceField.

admin.AdminSite.disable_action()

AdminSite.disable_action(name) [source] If you need to disable a site-wide action you can call AdminSite.disable_action(). For example, you can use this method to remove the built-in “delete selected objects” action: admin.site.disable_action('delete_selected') Once you’ve done the above, that action will no longer be available site-wide. If, however, you need to re-enable a globally-disabled action for one particular model, simply list it explicitly in your ModelAdmin.actions list: # Globa

views.generic.edit.FormMixin.get_form_class()

get_form_class() Retrieve the form class to instantiate. By default form_class.

core.files.storage.Storage.path()

path(name) [source] The local filesystem path where the file can be opened using Python’s standard open(). For storage systems that aren’t accessible from the local filesystem, this will raise NotImplementedError instead.

db.models.Options.required_db_features

Options.required_db_features New in Django 1.9. List of database features that the current connection should have so that the model is considered during the migration phase. For example, if you set this list to ['gis_enabled'], the model will only be synchronized on GIS-enabled databases. It’s also useful to skip some models when testing with several database backends. Avoid relations between models that may or may not be created as the ORM doesn’t handle this.

utils.translation.ugettext_lazy()

ugettext_lazy(message)

postgres.forms.SimpleArrayField.min_length

min_length This is an optional argument which validates that the array reaches at least the stated length. User friendly forms SimpleArrayField is not particularly user friendly in most cases, however it is a useful way to format data from a client-side widget for submission to the server.

http.HttpResponseServerError

class HttpResponseServerError [source] Acts just like HttpResponse but uses a 500 status code. Note If a custom subclass of HttpResponse implements a render method, Django will treat it as emulating a SimpleTemplateResponse, and the render method must itself return a valid response object.

admin.ModelAdmin.add_form_template

ModelAdmin.add_form_template Path to a custom template, used by add_view().

admin.ModelAdmin.response_delete()

ModelAdmin.response_delete(request, obj_display, obj_id) [source] Determines the HttpResponse for the delete_view() stage. response_delete is called after the object has been deleted. You can override it to change the default behavior after the object has been deleted. obj_display is a string with the name of the deleted object. obj_id is the serialized identifier used to retrieve the object to be deleted.