mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Default if none in template
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user