Pārlūkot izejas kodu

Fixes #461: Display a validation error when attempting to assigning a new child device to a rack face/position

Jeremy Stretch 8 gadi atpakaļ
vecāks
revīzija
52a490bf5d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      netbox/templates/dcim/device_edit.html

+ 1 - 1
netbox/templates/dcim/device_edit.html

@@ -45,7 +45,7 @@
                         </p>
                     </div>
                 </div>
-            {% elif not obj.device_type.is_child_device %}
+            {% else %}
                 {% render_field form.face %}
                 {% render_field form.position %}
             {% endif %}