Default if none in template

This commit is contained in:
2022-07-13 21:43:50 +02:00
parent 1296c4e663
commit 273225f919

View File

@@ -182,7 +182,7 @@
</tr>
<tr>
<th scope="row">Manufacturer</th>
<td>{{ rolling_stock.rolling_class.manufacturer }}</td>
<td>{{ rolling_stock.rolling_class.manufacturer|default_if_none:"" }}</td>
</tr>
</tbody>
</table>
@@ -222,7 +222,7 @@
</tr>
<tr>
<th scope="row">Manufacturer</th>
<td>{{ rolling_stock.decoder.manufacturer }}</td>
<td>{{ rolling_stock.decoder.manufacturer|default_if_none:"" }}</td>
</tr>
<tr>
<th scope="row">Version</th>