(self, model, schema_editor)
| 192 | return errors |
| 193 | |
| 194 | def _get_check_sql(self, model, schema_editor): |
| 195 | query = Query(model=model, alias_cols=False) |
| 196 | where = query.build_where(self.condition) |
| 197 | compiler = query.get_compiler(connection=schema_editor.connection) |
| 198 | sql, params = where.as_sql(compiler, schema_editor.connection) |
| 199 | return sql % tuple(schema_editor.quote_value(p) for p in params) |
| 200 | |
| 201 | def constraint_sql(self, model, schema_editor): |
| 202 | check = self._get_check_sql(model, schema_editor) |
no test coverage detected