We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c15d0a commit 0974329Copy full SHA for 0974329
src/extra_checks/forms.py
@@ -2,7 +2,6 @@
2
3
import django.core.checks
4
from django import forms
5
-from django.conf import settings
6
from django.utils.translation import gettext_lazy as _
7
8
from . import CheckId
@@ -103,15 +102,7 @@ def validate(self, value: dict) -> None:
103
102
104
105
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
- )
+ include_apps = ListField(forms.CharField(), required=False)
115
checks = ListField(
116
UnionField(
117
{
0 commit comments