Редактирование связанных элементов. Исправлена ошибка в шаблоне

This commit is contained in:
2015-06-01 17:06:08 +05:00
parent ca42f55ae0
commit c100612285
2 changed files with 3 additions and 3 deletions

View File

@@ -15,8 +15,8 @@
<TR bgcolor={{attend.date.weekday_color}}>
<TD>{{ attend.date.date_dd_mm_yy}}</TD>
<TD>{{ attend.date.weekday_name}}</TD>
<TD>{% inplace_edit "attend.attend.calls" %}</TD>
<TD>{% inplace_edit "attend.attend.visits" %}</TD>
<TD>{% if attend.attend %}{% inplace_edit "attend.attend.calls" %}{% endif %}</TD>
<TD>{% if attend.attend %}{% inplace_edit "attend.attend.visits" %}{% endif %}</TD>
<TD><a href="{% url 'asuzr-main' attend.date.day attend.date.month attend.date.year %}">{{ attend.orders_count}}</a></TD>
<TD>{{ attend.orders_price}}</TD>
<TD>{{ attend.designers}}</TD>

View File

@@ -28,7 +28,7 @@
<TR>
<TD>{{ order.date_dmy }}</TD>
<TD>{{ order.deadline_dmy }}</TD>
<TD>{% inplace_edit "order.product.name" %}</TD>
<TD>{% inplace_edit "order.product" %}</TD>
<TD>{%if order.delivery%} Да {% else %} Нет {% endif %} </TD>
<TD>{%if order.lifting%} Да {% else %} Нет {% endif %}</TD>
<TD>{% inplace_edit "order.address" %}</TD>