make copy and pase of oshash from filesystem easier
This commit is contained in:
parent
a96125044d
commit
e72a9675c7
1 changed files with 1 additions and 0 deletions
|
@ -431,6 +431,7 @@ actions.register(removeFiles, cache=False)
|
||||||
|
|
||||||
|
|
||||||
def lookup_file(request, oshash):
|
def lookup_file(request, oshash):
|
||||||
|
oshash = oshash.replace('/', '')
|
||||||
f = get_object_or_404(models.File, oshash=oshash)
|
f = get_object_or_404(models.File, oshash=oshash)
|
||||||
return redirect(f.item.get_absolute_url())
|
return redirect(f.item.get_absolute_url())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue