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:
@@ -765,7 +765,8 @@ class TableConfigForm(BootstrapMixin, forms.Form):
|
||||
choices=[],
|
||||
widget=forms.SelectMultiple(
|
||||
attrs={'size': 10}
|
||||
)
|
||||
),
|
||||
help_text="Use the buttons below to arrange columns in the desired order, then select all columns to display."
|
||||
)
|
||||
|
||||
def __init__(self, table, *args, **kwargs):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user