From d14fa04ab398e77e6f19b0453af4183b5e4cd14e Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 2 Aug 2019 07:09:37 +0200 Subject: [PATCH] Removed obsolete mentions of a check constraint in BaseDatabaseSchemaEditor.add_constraint()/remove_constraint() docstrings. --- django/db/backends/base/schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/db/backends/base/schema.py b/django/db/backends/base/schema.py index 990a7f55fb..a5a4163c19 100644 --- a/django/db/backends/base/schema.py +++ b/django/db/backends/base/schema.py @@ -344,13 +344,13 @@ class BaseDatabaseSchemaEditor: self.execute(index.remove_sql(model, self)) def add_constraint(self, model, constraint): - """Add a check constraint to a model.""" + """Add a constraint to a model.""" sql = constraint.create_sql(model, self) if sql: self.execute(sql) def remove_constraint(self, model, constraint): - """Remove a check constraint from a model.""" + """Remove a constraint from a model.""" sql = constraint.remove_sql(model, self) if sql: self.execute(sql)