remove the list_of_lists

This commit is contained in:
Andreas Zweili 2019-07-25 20:37:03 +02:00
parent 91672e8128
commit 1d6c631af3
3 changed files with 0 additions and 22 deletions

View File

@ -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 %}

View File

@ -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'),
]

View File

@ -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'