forked from 0x2620/pandora
redirect to files view
This commit is contained in:
parent
a56fec601c
commit
f5003f9613
1 changed files with 1 additions and 1 deletions
|
@ -433,7 +433,7 @@ actions.register(removeFiles, cache=False)
|
||||||
def lookup_file(request, oshash):
|
def lookup_file(request, oshash):
|
||||||
oshash = oshash.replace('/', '')
|
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('%s/files' % f.item.get_absolute_url())
|
||||||
|
|
||||||
|
|
||||||
def _order_query(qs, sort, prefix=''):
|
def _order_query(qs, sort, prefix=''):
|
||||||
|
|
Loading…
Reference in a new issue