django/django — pull request #2425 by blueyed (2014-03-12 22:03:49+00:00)
Title: Make Field.db_parameters() use db_type()

This reverts parts of ca9c3cd, which appear to have been made unintentionally.

It removes support for `db_type` to return the "CHECK (%s)" constraint suffix.
Internal code appears to use `db_parameters` for this.

Fixes #22260.

This needs tests. Please point me at where to put them, and how to test this best.