X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/81f5e7445d649ead05b4d3d0a15b742444cd8b06..282654ea252af7e2d30740b40bccfc9be61dd3a8:/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)