mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-22 23:46:42 +02:00
remove the list_of_lists
This commit is contained in:
parent
91672e8128
commit
1d6c631af3
|
@ -1,15 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block section_title %}List of Lists{% endblock %}
|
||||
{% block content %}
|
||||
<table class="sortable">
|
||||
<tr>
|
||||
<th>Lists</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="{% url 'computers' customer_id %}">Computers</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="{% url 'devices' customer_id %}">Devices</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
{% endblock %}
|
|
@ -13,6 +13,4 @@ urlpatterns = [
|
|||
name='computer'),
|
||||
path('devices/<int:customer_id>', views.DeviceListView.as_view(),
|
||||
name='devices'),
|
||||
path('customer/<int:customer_id>/lists/', views.list_of_lists,
|
||||
name='lists'),
|
||||
]
|
||||
|
|
|
@ -28,11 +28,6 @@ def computer_detail_view(request, computer_id):
|
|||
'cpu_list': cpu_list})
|
||||
|
||||
|
||||
def list_of_lists(request, customer_id):
|
||||
return render(request, 'inventory/list_of_lists.html',
|
||||
{'customer_id': customer_id})
|
||||
|
||||
|
||||
class CustomerDetailView(DetailView):
|
||||
model = Customer
|
||||
template_name = 'inventory/customer_details.html'
|
||||
|
|
Loading…
Reference in New Issue
Block a user