Jump to >

This documentation covers Djblets 1.0. You can see the latest Djblets documentation or all other versions.

djblets.db.validators

validate_json(value)[source]

Validates content going into a JSONField.

This will raise a ValidationError if the value is a string (representing a serialized JSON payload, possibly from the admin UI) and cannot be loaded properly.