diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-09-10 16:19:54 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-09-10 16:19:54 +0300 |
commit | 5ae2336abc50f6874e5c0df785d3dbe5016d459d (patch) | |
tree | b308194a6a2ed90a8f68cb5a0ba2006fefe706b0 /servo/templates | |
parent | 7b6774fba294988693ea227717dc789db898072c (diff) | |
download | Servo-5ae2336abc50f6874e5c0df785d3dbe5016d459d.tar.gz Servo-5ae2336abc50f6874e5c0df785d3dbe5016d459d.tar.bz2 Servo-5ae2336abc50f6874e5c0df785d3dbe5016d459d.zip |
Fix MultipleObjectsReturned exception
We cannot enforce SN uniqueness so let’s just use the first match when
creating order with device SN
Diffstat (limited to 'servo/templates')
-rwxr-xr-x | servo/templates/orders/devices.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/servo/templates/orders/devices.html b/servo/templates/orders/devices.html index bab9689..fb98862 100755 --- a/servo/templates/orders/devices.html +++ b/servo/templates/orders/devices.html @@ -87,6 +87,11 @@ <li class="disabled"><a href="#">{% trans "Create Onsite Repair" %}</a></li> {% endif %} {% if order.can_create_carryin and device.can_create_carryin and 0 %} + <li><a href="{% url 'repairs-create_repair' order.id device.id 'WH' %}">{% trans "Create Mail-In Repair" %}</a></li> + {% else %} + <li class="disabled"><a href="#">{% trans "Create Mail-In Repair" %}</a></li> + {% endif %} + {% if order.can_create_carryin and device.can_create_carryin and 0 %} <li><a href="{% url 'repairs-create_repair' order.id device.id 'RR' %}">{% trans "Create Whole-Unit Exchange" %}</a></li> {% else %} <li class="disabled"><a href="#">{% trans "Create Whole-Unit Exchange" %}</a></li> |