File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ class MissingBackwardsMigrationChecker(checkers.BaseChecker):
117117
118118 name = 'missing-backwards-migration-callable'
119119
120- msgs = {'W%s97' % BASE_ID : ('%s Always include backwards migration callable' ,
120+ msgs = {'W%s97' % BASE_ID : ('Always include backwards migration callable' ,
121121 'missing-backwards-migration-callable' ,
122122 'Always include a backwards/reverse callable counterpart'
123123 ' so that the migration is not irreversable.' )}
@@ -138,10 +138,10 @@ def visit_call(self, node):
138138 if keyword .arg == 'reverse_code' :
139139 return
140140 self .add_message ('missing-backwards-migration-callable' ,
141- args = module . name , node = node )
141+ node = node )
142142 else :
143143 self .add_message ('missing-backwards-migration-callable' ,
144- args = module . name , node = node )
144+ node = node )
145145
146146
147147def is_in_migrations (node ):
Original file line number Diff line number Diff line change 1- missing-backwards-migration-callable:12:Migration:pylint_django.tests.input.migrations.0003_without_backwards Always include backwards migration callable
2- missing-backwards-migration-callable:13:Migration:pylint_django.tests.input.migrations.0003_without_backwards Always include backwards migration callable
3- missing-backwards-migration-callable:15:Migration:pylint_django.tests.input.migrations.0003_without_backwards Always include backwards migration callable
4- missing-backwards-migration-callable:17:Migration:pylint_django.tests.input.migrations.0003_without_backwards Always include backwards migration callable
1+ missing-backwards-migration-callable:12:Migration:Always include backwards migration callable
2+ missing-backwards-migration-callable:13:Migration:Always include backwards migration callable
3+ missing-backwards-migration-callable:15:Migration:Always include backwards migration callable
4+ missing-backwards-migration-callable:17:Migration:Always include backwards migration callable
You can’t perform that action at this time.
0 commit comments