class HostPathNameForm(HostPathForm):
name = forms.CharField(label=u'Nazwa', max_length=256, validators=[name_validator])
+ def clean_name(self):
+ return clean_path(self.cleaned_data['name'])
+
class HostItemsForm(HostForm):
dirs = forms.MultipleChoiceField(label=u'Katalogi', required=False, widget=forms.MultipleHiddenInput())