Update Machine to be tied to a User, not a string

This commit is contained in:
Andrew Grant committed 2020-05-02 20:00:22 -04:00
1 parent 2917b90784
commit b295842066
5 files changed
+14 -15

No files matched your search

+2 -2
View File
@@ -19,8 +19,8 @@
{% for machine in machines %}
<tr>
<td class="numeric">{{machine.id}}</td>
<td>{{machine.owner}}</td>
<td>{{machine.osname}}</td>
<td>{{machine.user.username}}</td>
<td>{{machine.osname|truncatewords:1|slice:":-4"}}</td>
<td>{{machine.updated|date:'Y-m-d H:i'}}</td>
<td> <a href="/test/{{machine.workload.id}}">{{machine.workload.dev.name|prettyName}}</a></td>
<td class="numeric">{{machine.threads}}</td>
+1 -1
View File
@@ -117,7 +117,7 @@
{% for result in results %}
<tr>
<td>{{result.machine.id}}</td>
<td>{{result.machine.owner|slice:"6"}}</td>
<td>{{result.machine.user.username|slice:"6"}}</td>
<td>{{result.machine.osname|truncatewords:1|slice:":-4"}}</td>
<td>{{result.updated|date:'Y-m-d H:i'}}</td>
<td class="numeric">{{result.games}}</td>