mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 00:28:16 -06:00
Fixed permission value and working on queryset options for export
This commit is contained in:
parent
306f0a84e9
commit
df59845c17
@ -1556,8 +1556,8 @@ class InterfaceBulkImportView(PermissionRequiredMixin, BulkImportView):
|
||||
|
||||
|
||||
class InterfaceListView(ObjectListView):
|
||||
queryset = Interface.objects.select_related('device', 'name', 'description')\
|
||||
.order_by('device', 'name', 'description')
|
||||
queryset = Interface.objects.select_related('device', 'interface__device')\
|
||||
.order_by('device__name', 'interface__name', 'interface__description')
|
||||
filter = filters.InterfaceFilter
|
||||
filter_form = forms.InterfaceFilterForm
|
||||
table = tables.InterfaceTable
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
{% block content %}
|
||||
<div class="pull-right">
|
||||
{% if perms.dcim.add_interfaces %}
|
||||
{% if perms.dcim.add_interface %}
|
||||
<a href="{% url 'dcim:interface_import' %}" class="btn btn-info">
|
||||
<span class="fa fa-download" aria-hidden="true"></span>
|
||||
Import Interfaces
|
||||
|
Loading…
Reference in New Issue
Block a user