X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0cae17bec6d31806615fae59a5b3945016285fbe..2711c8990f3816ea86751cb761668bec93302ab8:/apps/catalogue/forms.py diff --git a/apps/catalogue/forms.py b/apps/catalogue/forms.py index 279ec7193..e20adbadc 100644 --- a/apps/catalogue/forms.py +++ b/apps/catalogue/forms.py @@ -39,6 +39,10 @@ class ObjectSetsForm(forms.Form): class NewSetForm(forms.Form): name = forms.CharField(max_length=50, required=True) + + def __init__(self, *args, **kwargs): + super(NewSetForm, self).__init__(*args, **kwargs) + self.fields['name'].widget.attrs['title'] = u'nazwa nowej półki' def save(self, user, commit=True): name = self.cleaned_data['name']