Skip to content

Commit aae4ad2

Browse files
committed
fix ruff errors
1 parent 9367499 commit aae4ad2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

netbox_custom_objects/tables.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from netbox.tables import NetBoxTable, columns
1010
from utilities.permissions import get_permission_for_model
1111

12-
from netbox_custom_objects.constants import APP_LABEL
1312
from netbox_custom_objects.models import CustomObject, CustomObjectType
1413
from netbox_custom_objects.utilities import get_viewname
1514

@@ -95,8 +94,13 @@ class CustomObjectTagColumn(columns.TagColumn):
9594
template_code = """
9695
{% load helpers %}
9796
{% for tag in value.all %}
98-
<a href="{% url 'plugins:netbox_custom_objects:customobject_list' custom_object_type=record.custom_object_type.slug %}?tag={{ tag.slug }}">
99-
<span {% if tag.description %}title="{{ tag.description }}"{% endif %} class="badge" style="color: {{ tag.color|fgcolor }}; background-color: #{{ tag.color }}">{{ tag }}</span>
97+
<a href="{% url 'plugins:netbox_custom_objects:customobject_list'
98+
custom_object_type=record.custom_object_type.slug %}?tag={{ tag.slug }}">
99+
<span {% if tag.description %}title="{{ tag.description }}"{% endif %}
100+
class="badge"
101+
style="color: {{ tag.color|fgcolor }}; background-color: #{{ tag.color }}">
102+
{{ tag }}
103+
</span>
100104
</a>
101105
{% empty %}
102106
<span class="text-muted">&mdash;</span>

0 commit comments

Comments
 (0)