peteeckel/netbox-plugin-dns

Unnecessary code in the Zone template

Closed this issue · 1 comments

Versions
NetBox Version: 4.0.5
NetBox DNS Version: 1.0.2
Python Version: 3.11.5

Describe the bug
There is an unnecessary re-implementation of the linkify functionality in the zone template:

                <tr>
                    <th scope="row">View</th>
                    <td>
                        <a href="{% url 'plugins:netbox_dns:view' pk=object.view.pk %}">
                            {{ object.view }}
                        </a>
                    </td>
                </tr>

After a little code review, some more instances of unnecessary manual linkify showed up.