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

Fix resetting column preferences

This commit is contained in:
Jeremy Stretch
2020-10-29 14:42:40 -04:00
parent a43361170c
commit 00e102fb0c
4 changed files with 9 additions and 3 deletions

View File

@ -41,7 +41,7 @@ class BaseTable(tables.Table):
# Apply custom column ordering for user
if user is not None and not isinstance(user, AnonymousUser):
columns = user.config.get(f"tables.{self.__class__.__name__}.columns")
if columns is not None:
if columns:
pk = self.base_columns.pop('pk', None)
actions = self.base_columns.pop('actions', None)