Skip to content

Commit

Permalink
Merge pull request #56 from nautobot/main
Browse files Browse the repository at this point in the history
Main
  • Loading branch information
whitej6 authored Jul 8, 2022
2 parents 8be02e4 + 11a16a5 commit 1f8aee5
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions nautobot_firewall_models/models/core_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,18 +539,7 @@ def __str__(self):
return f"{self.name} - {self.request_id}"
if self.name:
return self.name
if self.source_user or self.source_user_group:
return (
f"Source {self.source_address}/{self.source_address_group} -"
f" Destination {self.destination_address}/{self.destination_address_group} -"
f" Service {self.service}/{self.service_group} -"
f" User {self.source_user}/{self.source_user_group}"
)
return (
f"Source {self.source_address}/{self.source_address_group} -"
f" Destination {self.destination_address}/{self.destination_address_group} -"
f" Service {self.service}/{self.service_group}"
)
return self.id


@extras_features(
Expand Down

0 comments on commit 1f8aee5

Please sign in to comment.