X-Git-Url: https://git.mdrn.pl/django-migdal.git/blobdiff_plain/fe16cac52a33bd593bc8916415dc939d32dfb8f3..7140368dfb24ff4a4e7f7943eb14e44dff7b7321:/migdal/forms.py diff --git a/migdal/forms.py b/migdal/forms.py index 7c93ea8..63eba61 100644 --- a/migdal/forms.py +++ b/migdal/forms.py @@ -34,7 +34,7 @@ def get_submit_form(*args, **kwargs): def clean(self): data = super(SubmitForm, self).clean() data['type'] = app_settings.TYPE_SUBMIT - orig_slug = slughifi(data.get('title_%s' % lang, '')) + orig_slug = slughifi(data.get('title_%s' % lang, ''))[:47] slug = orig_slug number = 2 while Entry.objects.filter(**{'slug_%s' % lang: slug}).exists():