mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-08 13:04:47 +08:00
fix failing plugin tests
This commit is contained in:
@@ -21,7 +21,7 @@ def determine_model_cls_from_string_for_migrations(ctx: MethodContext) -> Type:
|
||||
if app_label is None:
|
||||
return ctx.default_return_type
|
||||
|
||||
if 'model_name' not in ctx.arg_names:
|
||||
if 'model_name' not in ctx.callee_arg_names:
|
||||
return ctx.default_return_type
|
||||
|
||||
model_name_expr = ctx.args[ctx.callee_arg_names.index('model_name')][0]
|
||||
|
||||
Reference in New Issue
Block a user