Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions netbox_acls/models/access_list_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ def get_absolute_url(self):
def get_action_color(self):
return ACLRuleActionChoices.colors.get(self.action)

def to_objectchange(self, action):
objectchange = super().to_objectchange(action)
objectchange.related_object = self.access_list
return objectchange


class ACLStandardRule(ACLRule):
"""
Expand Down