Adding to a unique identifier
Please write a name of a unique identifier {% for f in form_tag_device %} {{ f }} {% endfor %}

You need select first one device and only one for add this in a unique identifier