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):
117
117
118
118
name = 'missing-backwards-migration-callable'
119
119
120
- msgs = {'W%s97' % BASE_ID : ('%s Always include backwards migration callable' ,
120
+ msgs = {'W%s97' % BASE_ID : ('Always include backwards migration callable' ,
121
121
'missing-backwards-migration-callable' ,
122
122
'Always include a backwards/reverse callable counterpart'
123
123
' so that the migration is not irreversable.' )}
@@ -138,10 +138,10 @@ def visit_call(self, node):
138
138
if keyword .arg == 'reverse_code' :
139
139
return
140
140
self .add_message ('missing-backwards-migration-callable' ,
141
- args = module . name , node = node )
141
+ node = node )
142
142
else :
143
143
self .add_message ('missing-backwards-migration-callable' ,
144
- args = module . name , node = node )
144
+ node = node )
145
145
146
146
147
147
def 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