diff options
| author | Claude Paroz <claude@2xlibre.net> | 2016-03-19 12:15:09 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2016-04-08 20:28:00 +0200 |
| commit | 0d3c616fbb2f49fa7ff6809e5a6777275352b35b (patch) | |
| tree | e444996e32456a0ab64f65ee76e1d0c110f25ff5 /django/db | |
| parent | 5ac7c8f7ab2b2e1fec50abb14539a2eb520d1995 (diff) | |
Refs #26351 -- Added check hook to support database-related checks
Thanks Tim Graham and Shai Berger for the reviews.
Diffstat (limited to 'django/db')
| -rw-r--r-- | django/db/backends/base/validation.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/django/db/backends/base/validation.py b/django/db/backends/base/validation.py index 888908c1aa..23761b4161 100644 --- a/django/db/backends/base/validation.py +++ b/django/db/backends/base/validation.py @@ -1,9 +1,12 @@ class BaseDatabaseValidation(object): """ - This class encapsulates all backend-specific model validation. + This class encapsulates all backend-specific validation. """ def __init__(self, connection): self.connection = connection + def check(self, **kwargs): + return [] + def check_field(self, field, **kwargs): return [] |
