redirect to files view

This commit is contained in:
j 2012-06-28 15:55:38 +02:00
parent a56fec601c
commit f5003f9613

View file

@ -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=''):