gis.gdal.OGRGeometry.num_coords

num_coords Alias for point_count.

auth.backends.RemoteUserBackend.configure_user()

RemoteUserBackend.configure_user(user) Configures a newly created user. This method is called immediately after a new user is created, and can be used to perform custom setup actions, such as setting the user’s groups based on attributes in an LDAP directory. Returns the user object.

views.generic.base.TemplateResponseMixin.content_type

content_type The content type to use for the response. content_type is passed as a keyword argument to response_class. Default is None – meaning that Django uses DEFAULT_CONTENT_TYPE. Methods

forms.ModelMultipleChoiceField

class ModelMultipleChoiceField(**kwargs) [source] Default widget: SelectMultiple Empty value: An empty QuerySet (self.queryset.none()) Normalizes to: A QuerySet of model instances. Validates that every id in the given list of values exists in the queryset. Error message keys: required, list, invalid_choice, invalid_pk_value The invalid_choice message may contain %(value)s and the invalid_pk_value message may contain %(pk)s, which will be substituted by the appropriate values. Allows the

forms.ComboField.fields

fields The list of fields that should be used to validate the field’s value (in the order in which they are provided). >>> from django.forms import ComboField >>> f = ComboField(fields=[CharField(max_length=20), EmailField()]) >>> f.clean('test@example.com') 'test@example.com' >>> f.clean('longemailaddress@example.com') Traceback (most recent call last): ... ValidationError: ['Ensure this value has at most 20 characters (it has 28).']

http.QueryDict.__setitem__()

QueryDict.__setitem__(key, value) [source] Sets the given key to [value] (a Python list whose single element is value). Note that this, as other dictionary functions that have side effects, can only be called on a mutable QueryDict (such as one that was created via copy()).

admin.ModelAdmin.get_list_filter()

ModelAdmin.get_list_filter(request) [source] The get_list_filter method is given the HttpRequest and is expected to return the same kind of sequence type as for the list_filter attribute.

core.files.uploadhandler.TemporaryFileUploadHandler

class TemporaryFileUploadHandler [source] Upload handler that streams data into a temporary file using TemporaryUploadedFile.

core.files.uploadedfile.UploadedFile.content_type_extra

UploadedFile.content_type_extra A dictionary containing extra parameters passed to the content-type header. This is typically provided by services, such as Google App Engine, that intercept and handle file uploads on your behalf. As a result your handler may not receive the uploaded file content, but instead a URL or other pointer to the file. (see RFC 2388 section 5.3).

core.files.File.save()

File.save(name, content, save=True) Saves a new file with the file name and contents provided. This will not replace the existing file, but will create a new file and update the object to point to it. If save is True, the model’s save() method will be called once the file is saved. That is, these two lines: >>> car.photo.save('myphoto.jpg', content, save=False) >>> car.save() are equivalent to: >>> car.photo.save('myphoto.jpg', content, save=True) Note that the c