gis.gdal.Feature.num_fields

num_fields Returns the number of fields of data associated with the feature. This will be the same for all features in a given layer and is equivalent to the Layer.num_fields property of the Layer object the feature came from.

http.HttpResponse.content

HttpResponse.content A bytestring representing the content, encoded from a Unicode object if necessary.

gis.admin.GeoModelAdmin.map_height

map_height Height of the map, in pixels. Defaults to 400.

gis.gdal.OGRGeometry.envelope

envelope Returns the envelope of this geometry, as an Envelope object.

admin.ModelAdmin.has_add_permission()

ModelAdmin.has_add_permission(request) Should return True if adding an object is permitted, False otherwise.

core.paginator.Page.has_next()

Page.has_next() [source] Returns True if there’s a next page.

db.models.ForeignKey.db_constraint

ForeignKey.db_constraint Controls whether or not a constraint should be created in the database for this foreign key. The default is True, and that’s almost certainly what you want; setting this to False can be very bad for data integrity. That said, here are some scenarios where you might want to do this: You have legacy data that is not valid. You’re sharding your database. If this is set to False, accessing a related object that doesn’t exist will raise its DoesNotExist exception.

forms.Form.as_table()

Form.as_table() Finally, as_table() outputs the form as an HTML <table>. This is exactly the same as print. In fact, when you print a form object, it calls its as_table() method behind the scenes: >>> f = ContactForm() >>> f.as_table() '<tr><th><label for="id_subject">Subject:</label></th><td><input id="id_subject" type="text" name="subject" maxlength="100" required /></td></tr>\n<tr><th><label for="

admin.ModelAdmin.delete_model()

ModelAdmin.delete_model(request, obj) [source] The delete_model method is given the HttpRequest and a model instance. Use this method to do pre- or post-delete operations.

admin.ModelAdmin.list_filter

ModelAdmin.list_filter Set list_filter to activate filters in the right sidebar of the change list page of the admin, as illustrated in the following screenshot: list_filter should be a list or tuple of elements, where each element should be of one of the following types: a field name, where the specified field should be either a BooleanField, CharField, DateField, DateTimeField, IntegerField, ForeignKey or ManyToManyField, for example: class PersonAdmin(admin.ModelAdmin): list_filter