mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Make purchase date a private field as well
This commit is contained in:
@@ -108,11 +108,11 @@
|
||||
<th scope="row">Publication year</th>
|
||||
<td>{{ book.publication_year|default:"-" }}</td>
|
||||
</tr>
|
||||
{% if request.user.is_staff %}
|
||||
<tr>
|
||||
<th scope="row">Purchase date</th>
|
||||
<td>{{ book.purchase_date|default:"-" }}</td>
|
||||
</tr>
|
||||
{% if request.user.is_staff %}
|
||||
<tr>
|
||||
<th scope="row">Price ({{ site_conf.currency }})</th>
|
||||
<td>{{ book.price|default:"-" }}</td>
|
||||
|
@@ -182,11 +182,11 @@
|
||||
<th scope="row">Production year</th>
|
||||
<td>{{ rolling_stock.production_year|default:"-" }}</td>
|
||||
</tr>
|
||||
{% if request.user.is_staff %}
|
||||
<tr>
|
||||
<th scope="row">Purchase date</th>
|
||||
<td>{{ rolling_stock.purchase_date|default:"-" }}</td>
|
||||
</tr>
|
||||
{% if request.user.is_staff %}
|
||||
<tr>
|
||||
<th scope="row">Price ({{ site_conf.currency }})</th>
|
||||
<td>{{ rolling_stock.price|default:"-" }}</td>
|
||||
|
Reference in New Issue
Block a user