Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions adminsortable/admin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
from urllib.parse import urlencode

from django.conf import settings
Expand Down Expand Up @@ -36,11 +35,17 @@ class SortableAdminBase(object):

after_sorting_js_callback_name = None

sortable_ignored_params = ()

def get_querystring_filters(self, request):
filters = {}

for k, v in request.GET.items():
if k not in IGNORED_PARAMS and k != PAGE_VAR:
if (
k not in IGNORED_PARAMS
and k != PAGE_VAR
and k not in self.sortable_ignored_params
):
filters[k] = v

return filters
Expand Down