Rename SKU to 'Item number'

This commit is contained in:
2023-10-01 21:35:14 +02:00
parent 124f3c2a8b
commit b8572c1701
6 changed files with 31 additions and 13 deletions

View File

@@ -68,8 +68,8 @@
<td><a href="{% url 'filtered' _filter="scale" search=d.scale.slug %}"><abbr title="{{ d.scale.ratio }} - {{ d.scale.tracks }}">{{ d.scale }}</abbr></a></td>
</tr>
<tr>
<th scope="row">SKU</th>
<td>{{ d.sku }}</td>
<th scope="row">Item number</th>
<td>{{ d.item_number }}</td>
</tr>
</tbody>
</table>

View File

@@ -105,8 +105,8 @@
<td><a href="{% url 'filtered' _filter="scale" search=rolling_stock.scale %}"><abbr title="{{ rolling_stock.scale.ratio }} - {{ rolling_stock.scale.tracks }}">{{ rolling_stock.scale }}</abbr></a></td>
</tr>
<tr>
<th scope="row">SKU</th>
<td>{{ rolling_stock.sku }}</td>
<th scope="row">Item number</th>
<td>{{ rolling_stock.item_number }}</td>
</tr>
</tbody>
</table>
@@ -155,8 +155,8 @@
<td><a href="{% url 'filtered' _filter="scale" search=rolling_stock.scale %}"><abbr title="{{ rolling_stock.scale.ratio }} - {{ rolling_stock.scale.tracks }}">{{ rolling_stock.scale }}</abbr></a></td>
</tr>
<tr>
<th scope="row">SKU</th>
<td>{{ rolling_stock.sku }}</td>
<th scope="row">Item number</th>
<td>{{ rolling_stock.item_number }}</td>
</tr>
<tr>
<th scope="row">Era</th>

View File

@@ -80,7 +80,7 @@ class SearchRoster(View):
| Q(rolling_class__description__icontains=s)
| Q(rolling_class__type__type__icontains=s)
| Q(road_number__icontains=s)
| Q(sku=s)
| Q(item_number=s)
| Q(rolling_class__company__name__icontains=s)
| Q(rolling_class__company__country__icontains=s)
| Q(manufacturer__name__icontains=s)