Commit 710bb4f6 authored by Hadley Rich's avatar Hadley Rich

Check for no path

parent c5535724
...@@ -851,6 +851,9 @@ class BaseFileAdmin(BaseView, ActionsMixin): ...@@ -851,6 +851,9 @@ class BaseFileAdmin(BaseView, ActionsMixin):
def sort_url(column, path, invert=False): def sort_url(column, path, invert=False):
desc = None desc = None
if not path:
path = None
if invert and not sort_desc: if invert and not sort_desc:
desc = 1 desc = 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment