mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-02 15:37:18 +02:00
Misc cleanup
This commit is contained in:
@@ -2627,7 +2627,7 @@ class DeviceView(generic.ObjectView):
|
||||
model='ipam.Service',
|
||||
title=_('Application Services'),
|
||||
filters={'device_id': lambda ctx: ctx['object'].pk},
|
||||
exclude_columns=['device'],
|
||||
exclude_columns=['parent'],
|
||||
actions=[
|
||||
actions.AddObject(
|
||||
'ipam.Service',
|
||||
|
||||
@@ -203,7 +203,6 @@ class GroupView(generic.ObjectView):
|
||||
ObjectsTablePanel(
|
||||
'users.User',
|
||||
filters={'group_id': lambda ctx: ctx['object'].pk},
|
||||
exclude_columns=['group'],
|
||||
),
|
||||
ObjectsTablePanel(
|
||||
'users.ObjectPermission',
|
||||
@@ -420,12 +419,10 @@ class OwnerView(GetRelatedModelsMixin, generic.ObjectView):
|
||||
ObjectsTablePanel(
|
||||
'users.Group',
|
||||
filters={'owner_id': lambda ctx: ctx['object'].pk},
|
||||
exclude_columns=['owner'],
|
||||
),
|
||||
ObjectsTablePanel(
|
||||
'users.User',
|
||||
filters={'owner_id': lambda ctx: ctx['object'].pk},
|
||||
exclude_columns=['owner'],
|
||||
),
|
||||
],
|
||||
right_panels=[
|
||||
|
||||
Reference in New Issue
Block a user