forms.BoundField.is_hidden

BoundField.is_hidden Returns True if this BoundField‘s widget is hidden.

forms.Form.has_error()

Form.has_error(field, code=None) This method returns a boolean designating whether a field has an error with a specific error code. If code is None, it will return True if the field contains any errors at all. To check for non-field errors use NON_FIELD_ERRORS as the field parameter.

dispatch.Signal

class Signal(providing_args=list) [source] All signals are django.dispatch.Signal instances. The providing_args is a list of the names of arguments the signal will provide to listeners. This is purely documentational, however, as there is nothing that checks that the signal actually provides these arguments to its listeners. For example: import django.dispatch pizza_done = django.dispatch.Signal(providing_args=["toppings", "size"]) This declares a pizza_done signal that will provide receiv

gis.db.models.GeoQuerySet.centroid()

GeoQuerySet.centroid(**kwargs) Deprecated since version 1.9: Use the Centroid function instead. Availability: PostGIS, Oracle, SpatiaLite Returns the centroid value for the geographic field in a centroid attribute on each element of the GeoQuerySet.

db.models.Options.db_tablespace

Options.db_tablespace The name of the database tablespace to use for this model. The default is the project’s DEFAULT_TABLESPACE setting, if set. If the backend doesn’t support tablespaces, this option is ignored.

forms.CharField.max_length

max_length

db.models.Expression.contains_aggregate

contains_aggregate Tells Django that this expression contains an aggregate and that a GROUP BY clause needs to be added to the query.

admin.StackedInline

class StackedInline [source] The admin interface has the ability to edit models on the same page as a parent model. These are called inlines. Suppose you have these two models: from django.db import models class Author(models.Model): name = models.CharField(max_length=100) class Book(models.Model): author = models.ForeignKey(Author, on_delete=models.CASCADE) title = models.CharField(max_length=100) You can edit the books authored by an author on the author page. You add inlines t

utils.translation.npgettext_lazy()

npgettext_lazy(context, singular, plural, number) [source] Same as the non-lazy versions above, but using lazy execution. See lazy translations documentation.

http.QueryDict.update()

QueryDict.update(other_dict) Takes either a QueryDict or standard dictionary. Just like the standard dictionary update() method, except it appends to the current dictionary items rather than replacing them. For example: >>> q = QueryDict('a=1', mutable=True) >>> q.update({'a': '2'}) >>> q.getlist('a') ['1', '2'] >>> q['a'] # returns the last '2'