redirect to media
This commit is contained in:
parent
e68e61e5af
commit
0606b09ec6
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ actions.register(getPath, cache=True)
|
||||||
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('%s/files' % f.item.get_absolute_url())
|
return redirect('%s/media' % f.item.get_absolute_url())
|
||||||
|
|
||||||
|
|
||||||
def _order_query(qs, sort, prefix=''):
|
def _order_query(qs, sort, prefix=''):
|
||||||
|
|
Loading…
Reference in a new issue