|
9 | 9 | import json |
10 | 10 |
|
11 | 11 | from django import forms |
| 12 | +from django.conf import settings |
12 | 13 | from django.core.exceptions import ValidationError |
13 | 14 | from django.db import transaction |
14 | 15 | from django.forms import BaseModelFormSet |
@@ -557,7 +558,7 @@ class ImportFromScanForm(forms.Form): |
557 | 558 | create_dependencies = forms.BooleanField( |
558 | 559 | label=_("Create Dependencies"), |
559 | 560 | required=False, |
560 | | - initial=False, |
| 561 | + initial=settings.CREATE_DEPENDENCIES_DEFAULT, |
561 | 562 | help_text=_( |
562 | 563 | "When checked, dependency relationships between packages discovered in the " |
563 | 564 | "import will be created on the Product." |
@@ -664,7 +665,7 @@ class BaseProductImportFormView(forms.Form): |
664 | 665 | create_dependencies = forms.BooleanField( |
665 | 666 | label=_("Create Dependencies"), |
666 | 667 | required=False, |
667 | | - initial=False, |
| 668 | + initial=settings.CREATE_DEPENDENCIES_DEFAULT, |
668 | 669 | help_text=_( |
669 | 670 | "When checked, dependency relationships between packages discovered in the " |
670 | 671 | "import will be created on the Product." |
@@ -1002,7 +1003,7 @@ class PullProjectDataForm(forms.Form): |
1002 | 1003 | create_dependencies = forms.BooleanField( |
1003 | 1004 | label=_("Create Dependencies"), |
1004 | 1005 | required=False, |
1005 | | - initial=False, |
| 1006 | + initial=settings.CREATE_DEPENDENCIES_DEFAULT, |
1006 | 1007 | help_text=_( |
1007 | 1008 | "When checked, dependency relationships between packages discovered in the " |
1008 | 1009 | "import will be created on the Product." |
|
0 commit comments