Skip to content

Commit a982141

Browse files
Fix issue where skip_model_names not respected
when using alongside app_label i.e. pass only model_names to run_form_runners (since they've already been extracted from the app_label)
1 parent 3c6beb3 commit a982141

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

edc_form_runners/management/commands/run_form_runners.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def handle(self, *args, **options):
5858

5959
if app_labels and model_names:
6060
raise CommandError(
61-
"Either provide the `app label` or a `model name` but not both. "
61+
"Either provide the `app label` or `model name(s)` but not both. "
6262
f"Got {app_labels} and {model_names}."
6363
)
6464

@@ -74,7 +74,7 @@ def handle(self, *args, **options):
7474
model_names = [m for m in model_names if m not in skip_model_names]
7575

7676
try:
77-
run_form_runners(app_labels, model_names)
77+
run_form_runners(model_names=model_names)
7878
except FormRunnerError as e:
7979
if debug:
8080
raise

0 commit comments

Comments
 (0)