gis.geos.MultiPolygon.cascaded_union

cascaded_union Deprecated since version 1.10: Use the GEOSGeometry.unary_union property instead. Returns a Polygon that is the union of all of the component polygons in this collection. The algorithm employed is significantly more efficient (faster) than trying to union the geometries together individually. [2]

http.HttpResponseForbidden

class HttpResponseForbidden [source] Acts just like HttpResponse but uses a 403 status code.

db.models.Field.db_index

Field.db_index If True, a database index will be created for this field.

forms.FileInput

class FileInput [source] File upload input: <input type='file' ...>

db.models.Field.blank

Field.blank If True, the field is allowed to be blank. Default is False. Note that this is different than null. null is purely database-related, whereas blank is validation-related. If a field has blank=True, form validation will allow entry of an empty value. If a field has blank=False, the field will be required.

forms.MultiValueField.compress()

compress(data_list) [source] Takes a list of valid values and returns a “compressed” version of those values – in a single value. For example, SplitDateTimeField is a subclass which combines a time field and a date field into a datetime object. This method must be implemented in the subclasses.

Writing your first Django app, part 4

This tutorial begins where Tutorial 3 left off. We’re continuing the Web-poll application and will focus on simple form processing and cutting down our code. Write a simple form Let’s update our poll detail template (“polls/detail.html”) from the last tutorial, so that the template contains an HTML <form> element: <h1>{{ question.question_text }}</h1> {% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %} <form action="{% url

forms.BoundField.html_name

BoundField.html_name The name that will be used in the widget’s HTML name attribute. It takes the form prefix into account.

admin.ModelAdmin.get_list_select_related()

ModelAdmin.get_list_select_related(request) [source] New in Django 1.9. The get_list_select_related method is given the HttpRequest and should return a boolean or list as ModelAdmin.list_select_related does.

core.files.storage.DefaultStorage

class DefaultStorage [source] DefaultStorage provides lazy access to the current default storage system as defined by DEFAULT_FILE_STORAGE. DefaultStorage uses get_storage_class() internally.