1
# Copyright 2010 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
4
from django.forms import MultipleChoiceField
5
from identityprovider.widgets import CommaSeparatedWidget
8
class CommaSeparatedField(MultipleChoiceField):
9
widget = CommaSeparatedWidget
11
def clean(self, value):
12
return ','.join(super(CommaSeparatedField, self).clean(value))