views.generic.detail.SingleObjectMixin.get_slug_field()
  • References/Python/Django/API/Single object mixins

get_slug_field() Returns the name of a slug field to be used to look up by slug. By default this simply returns the value of

2025-01-10 15:47:30
db.backends.base.schema.SchemaEditor.connection
  • References/Python/Django/API/SchemaEditor

SchemaEditor.connection A connection object to the database. A useful attribute of the connection is alias which

2025-01-10 15:47:30
db.migrations.operations.AddField
  • References/Python/Django/API/Migration Operations

class AddField(model_name, name, field, preserve_default=True) [source] Adds a field to a

2025-01-10 15:47:30
postgres.search.SearchRank
  • References/Python/Django/API/Full text search

class SearchRank(vector, query, weights=None) [source] So far, we’ve just returned the results

2025-01-10 15:47:30
admin.ModelAdmin.get_actions()
  • References/Python/Django/API/Admin actions

ModelAdmin.get_actions(request) [source] Finally, you can conditionally enable or disable

2025-01-10 15:47:30
forms.CharField.strip
  • References/Python/Django/API/Forms/Form fields

strip New in Django 1.9. If True

2025-01-10 15:47:30
http.HttpResponse.tell()
  • References/Python/Django/API/Request and response objects

HttpResponse.tell() [source] This method makes an HttpResponse instance a file-like

2025-01-10 15:47:30
auth.mixins.AccessMixin.raise_exception
  • References/Python/Django/Guides

raise_exception If this attribute is set to True, a PermissionDenied exception will be raised instead

2025-01-10 15:47:30
gis.gdal.Polygon.centroid
  • References/Python/Django/API/GDAL API

centroid Returns a Point representing the centroid of this polygon.

2025-01-10 15:47:30
test.Response.wsgi_request
  • References/Python/Django/Guides

wsgi_request The WSGIRequest instance generated by the test handler that generated the response.

2025-01-10 15:47:30