X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/81f5e7445d649ead05b4d3d0a15b742444cd8b06..4334b1df511eb3a8161e9a98b1d3f00777e4e054:/src/cover/views.py diff --git a/src/cover/views.py b/src/cover/views.py index 638f1c06..25663a09 100644 --- a/src/cover/views.py +++ b/src/cover/views.py @@ -158,7 +158,7 @@ def quick_import(request, pk): if url.startswith('%s://%s/' % ( request.scheme, request.get_host())): - cover_id = url.rsplit('/', 1)[-1] + cover_id = url.rstrip('/').rsplit('/', 1)[-1] cover = Image.objects.get(pk=cover_id) else: data = get_import_data(url)