db.backends.base.schema.BaseDatabaseSchemaEditor.create_model()

BaseDatabaseSchemaEditor.create_model(model) [source] Creates a new table in the database for the provided model, along with any unique constraints or indexes it requires.

apps.apps.get_app_config()

apps.get_app_config(app_label) Returns an AppConfig for the application with the given app_label. Raises LookupError if no such application exists.

forms.Form.non_field_errors()

Form.non_field_errors() This method returns the list of errors from Form.errors that aren’t associated with a particular field. This includes ValidationErrors that are raised in Form.clean() and errors added using Form.add_error(None, "...").

postgres.aggregates.ArrayAgg

class ArrayAgg(expression, **extra) [source] Returns a list of values, including nulls, concatenated into an array.

postgres.validators.KeysValidator

class KeysValidator(keys, strict=False, messages=None) [source] Validates that the given keys are contained in the value. If strict is True, then it also checks that there are no other keys present. The messages passed should be a dict containing the keys missing_keys and/or extra_keys. Note Note that this checks only for the existence of a given key, not that the value of a key is non-empty.

db.connection.creation.destroy_test_db()

destroy_test_db(old_database_name, verbosity=1, keepdb=False) Destroys the database whose name is the value of NAME in DATABASES, and sets NAME to the value of old_database_name. The verbosity argument has the same behavior as for DiscoverRunner. If the keepdb argument is True, then the connection to the database will be closed, but the database will not be destroyed.

gis.geoip2.GeoIP2.geos()

GeoIP2.geos(query) Returns a Point object corresponding to the query.

db.models.Options.permissions

Options.permissions Extra permissions to enter into the permissions table when creating this object. Add, delete and change permissions are automatically created for each model. This example specifies an extra permission, can_deliver_pizzas: permissions = (("can_deliver_pizzas", "Can deliver pizzas"),) This is a list or tuple of 2-tuples in the format (permission_code, human_readable_permission_name).

admin.models.LogEntry.get_change_message()

LogEntry.get_change_message() New in Django 1.10. Formats and translates change_message into the current user language. Messages created before Django 1.10 will always be displayed in the language in which they were logged.

db.models.Model.clean_fields()

Model.clean_fields(exclude=None) [source] This method will validate all fields on your model. The optional exclude argument lets you provide a list of field names to exclude from validation. It will raise a ValidationError if any fields fail validation. The second step full_clean() performs is to call Model.clean(). This method should be overridden to perform custom validation on your model.