Skip to content

Commit 0974329

Browse files
committed
Accept anything in include_apps, closes #6.
1 parent 6c15d0a commit 0974329

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/extra_checks/forms.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import django.core.checks
44
from django import forms
5-
from django.conf import settings
65
from django.utils.translation import gettext_lazy as _
76

87
from . import CheckId
@@ -103,15 +102,7 @@ def validate(self, value: dict) -> None:
103102

104103

105104
class ConfigForm(forms.Form):
106-
include_apps = ListField(
107-
forms.ChoiceField(
108-
choices=[(a, a) for a in settings.INSTALLED_APPS],
109-
error_messages={
110-
"invalid_choice": _("'%(value)s' is not present in INSTALLED_APPS."),
111-
},
112-
),
113-
required=False,
114-
)
105+
include_apps = ListField(forms.CharField(), required=False)
115106
checks = ListField(
116107
UnionField(
117108
{

0 commit comments

Comments
 (0)