(self, model, schema_editor)
| 175 | return errors |
| 176 | |
| 177 | def _get_condition_sql(self, model, schema_editor): |
| 178 | if self.condition is None: |
| 179 | return None |
| 180 | query = Query(model=model, alias_cols=False) |
| 181 | where = query.build_where(self.condition) |
| 182 | compiler = query.get_compiler(connection=schema_editor.connection) |
| 183 | sql, params = where.as_sql(compiler, schema_editor.connection) |
| 184 | return sql % tuple(schema_editor.quote_value(p) for p in params) |
| 185 | |
| 186 | def create_sql(self, model, schema_editor, using="", **kwargs): |
| 187 | include = [ |
no test coverage detected