1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Enable reordering table columns

This commit is contained in:
Jeremy Stretch
2020-04-28 14:27:27 -04:00
parent 3442ec77a7
commit f51e7519dc
5 changed files with 41 additions and 8 deletions

View File

@@ -202,7 +202,7 @@ class ObjectListView(View):
request.user.config.clear(preference_name, commit=True)
messages.success(request, "Your preferences have been updated.")
return redirect(request.path)
return redirect(request.get_full_path())
def alter_queryset(self, request):
# .all() is necessary to avoid caching queries