فهرست منبع

Replaced "not A== B" with "A != B" in docs/howto/writing-migrations.txt.

Berker Peksag 7 سال پیش
والد
کامیت
c362228556
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      docs/howto/writing-migrations.txt

+ 1 - 1
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