Compare commits
No commits in common. "76457893f544ced7e62b6d9c8dc949755354bddc" and "fc0bb95017605f110eef07c2a4299aae91b65a48" have entirely different histories.
76457893f5
...
fc0bb95017
|
@ -33,19 +33,7 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col" data-sortable="">
|
<th scope="col" data-sortable="">
|
||||||
select
|
<a class="dataTable-sorter" href="#">Title</a>
|
||||||
</th>
|
|
||||||
<th scope="col" data-sortable="">
|
|
||||||
shortid
|
|
||||||
</th>
|
|
||||||
<th scope="col" data-sortable="">
|
|
||||||
type
|
|
||||||
</th>
|
|
||||||
<th scope="col" data-sortable="">
|
|
||||||
manufacturer
|
|
||||||
</th>
|
|
||||||
<th scope="col" data-sortable="">
|
|
||||||
model
|
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -57,18 +45,9 @@
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="{% url 'device:details' dev.id %}">
|
<a href="{% url 'device:details' dev.id %}">
|
||||||
{{ dev.shortid }}
|
{{ dev.type }} {{ dev.manufacturer }} {{ dev.model }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
{{ dev.type }}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ dev.manufacturer }}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ dev.model }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -27,7 +27,6 @@ class Device:
|
||||||
# the id is the chid of the device
|
# the id is the chid of the device
|
||||||
self.id = kwargs["id"]
|
self.id = kwargs["id"]
|
||||||
self.pk = self.id
|
self.pk = self.id
|
||||||
self.shortid = self.pk[:6]
|
|
||||||
self.algorithm = None
|
self.algorithm = None
|
||||||
self.owner = None
|
self.owner = None
|
||||||
self.annotations = []
|
self.annotations = []
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h3>{{ object.shortid }}</h3>
|
<h3>{{ object.id }}</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue