X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/6422710d756f21201737623ee51d61431cd4e0c9..f98d5c205ae1f16fdd3990a0bd82c0827f1cdd28:/apps/cover/forms.py?ds=inline diff --git a/apps/cover/forms.py b/apps/cover/forms.py index fdd43048..d726f1fa 100755 --- a/apps/cover/forms.py +++ b/apps/cover/forms.py @@ -38,7 +38,7 @@ class FlickrForm(forms.Form): def clean_source_url(self): url = self.cleaned_data['source_url'] - m = re.match(r'(https?://)?(www\.|secure\.)?flickr\.com/photos/(?P[^/]+)/(?P\d+)', url) + m = re.match(r'(https?://)?(www\.|secure\.)?flickr\.com/photos/(?P[^/]+)/(?P\d+)/?', url) if not m: raise forms.ValidationError("It doesn't look like Flickr URL.") author_slug, img_id = m.group('author'), m.group('img')