Skip to content

Commit 1930f4a

Browse files
committed
fix check
1 parent 8d3f983 commit 1930f4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mssql/functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ def _get_check_sql(self, model, schema_editor):
282282
else:
283283
query = Query(model=model)
284284
if VERSION >= (5, 1):
285-
where = query.build_where(self.check)
286-
else:
287285
where = query.build_where(self.condition)
286+
else:
287+
where = query.build_where(self.check)
288288
compiler = query.get_compiler(connection=schema_editor.connection)
289289
sql, params = where.as_sql(compiler, schema_editor.connection)
290290
if schema_editor.connection.vendor == 'microsoft':

0 commit comments

Comments
 (0)