diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-06-16 18:39:42 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-06-16 18:39:42 +0200 |
| commit | 7f871c7698c56dce6f398e850a08d5619cebd243 (patch) | |
| tree | aed266494a442ca241137370e7df7dc965febf5f /ishtar/templates/sheet_operation.html | |
| parent | 48691eebe6c933ffb3a9d41ba0ee09ff7d574a2d (diff) | |
| download | Ishtar-7f871c7698c56dce6f398e850a08d5619cebd243.tar.bz2 Ishtar-7f871c7698c56dce6f398e850a08d5619cebd243.zip | |
Correct the database link between context records and operations (closes #482)
Diffstat (limited to 'ishtar/templates/sheet_operation.html')
| -rw-r--r-- | ishtar/templates/sheet_operation.html | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ishtar/templates/sheet_operation.html b/ishtar/templates/sheet_operation.html index b4c251197..db9d22cee 100644 --- a/ishtar/templates/sheet_operation.html +++ b/ishtar/templates/sheet_operation.html @@ -129,7 +129,7 @@ <th class='link'> </th> </tr> {% for parcel in item.parcels.all %} - {% for context_record in parcel.context_record.all %} + {% for context_record in item.context_record.all %} <tr> <td>{{ context_record.label }}</td> <td class='string'>{{context_record.unit}}</td> @@ -159,8 +159,7 @@ <th>{% trans "Parcel" %}</th> <th class='link'> </th> </tr> - {% for parcel in item.parcels.all %} - {% for context_record in parcel.context_record.all %} + {% for context_record in item.context_record.all %} {% for find in context_record.base_items.all %} <tr> <td>{{ find.full_label }}</td> @@ -185,9 +184,6 @@ {% empty %} <tr><td colspan="9" class='no_items'>{% trans "No find associated to parcel" %} {{parcel.short_label}} {% trans "(no context record)" %}</td></tr> {% endfor %} - {% empty %} - <tr><td colspan="9" class='no_items'>{% trans "No find associated to this operation (no parcel)" %}</td></tr> - {% endfor %} </table> |
