Fix Sort Link

Updated conditional to not add filter expression if a search has been performed on the queryset.
This commit is contained in:
Brandon Taylor committed 2018-10-05 10:53:56 -04:00
1 parent 723b66f551
commit 1ed27acbaa
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -88,6 +88,7 @@ class ProjectAdmin(SortableAdmin):
list_display = ['__str__', 'category']
list_filter = ('category__title',)
after_sorting_js_callback_name = 'afterSortCallback'
search_fields = ['title']
sortable_change_list_template = 'adminsortable/custom_change_list.html'
sortable_change_form_template = 'adminsortable/custom_change_form.html'