Skip to content

Commit 62c6e7d

Browse files
committed
wip
1 parent 4158b4d commit 62c6e7d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: h/schemas/forms/admin/group.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
GROUP_NAME_MIN_LENGTH,
1515
)
1616
from h.schemas import validators
17-
from h.schemas.base import CSRFSchema
1817
from h.util import group_scope
1918

2019
_ = i18n.TranslationString
@@ -137,9 +136,9 @@ def group_organization_select_widget(_node, kwargs):
137136
return SelectWidget(values=list(zip(org_pubids, org_labels, strict=False)))
138137

139138

140-
class AdminGroupSchema(CSRFSchema):
139+
class AdminGroupSchema(colander.Schema):
141140
def __init__(self, *args):
142-
super().__init__(validator=username_validator, *args) # noqa: B026
141+
super().__init__(*args)
143142

144143
group_type = colander.SchemaNode(
145144
colander.String(),
@@ -207,7 +206,6 @@ def __init__(self, *args):
207206
" of the entered scope strings (e.g. 'http://www.example.com')"
208207
),
209208
widget=SequenceWidget(add_subitem_text_template=_("Add scope")),
210-
missing=colander.drop,
211209
)
212210

213211
members = colander.SequenceSchema(
@@ -218,3 +216,6 @@ def __init__(self, *args):
218216
widget=SequenceWidget(add_subitem_text_template=_("Add member")),
219217
missing=None,
220218
)
219+
220+
def validator(self, node, value):
221+
username_validator(node, value)

0 commit comments

Comments
 (0)