From 6e6aa77b3b0ea191300478f1c2569b1238d23648 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Wed, 26 Jul 2017 16:34:10 +0300 Subject: [PATCH] [1.11.x] Replaced "not A== B" with "A != B" in docs/howto/writing-migrations.txt. Backport of c362228556bedb4a8a3cdaf91b9e456e459ecda1 from master --- docs/howto/writing-migrations.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/howto/writing-migrations.txt b/docs/howto/writing-migrations.txt index 9465290c74..d10097df28 100644 --- a/docs/howto/writing-migrations.txt +++ b/docs/howto/writing-migrations.txt @@ -22,7 +22,7 @@ attribute:: from django.db import migrations def forwards(apps, schema_editor): - if not schema_editor.connection.alias == 'default': + if schema_editor.connection.alias != 'default': return # Your migration code goes here