fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixes #4405: reset metadata editor when switching views.
[redakcja.git]
/
src
/
cover
/
views.py
diff --git
a/src/cover/views.py
b/src/cover/views.py
index
638f1c0
..
25663a0
100644
(file)
--- 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.rs
trip('/').rs
plit('/', 1)[-1]
cover = Image.objects.get(pk=cover_id)
else:
data = get_import_data(url)