1
0
mirror of https://github.com/django/django.git synced 2025-03-29 02:30:48 +00:00
django/django/db/backends/base/validation.py
Claude Paroz 0d3c616fbb Refs #26351 -- Added check hook to support database-related checks
Thanks Tim Graham and Shai Berger for the reviews.
2016-04-08 20:28:00 +02:00

13 lines
301 B
Python

class BaseDatabaseValidation(object):
"""
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 []