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:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user