<form id="changelist-form" method="post"{% if cl.formset and cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %} novalidate>{% csrf_token %}
This is valid Django template HTML with no duplicate attributes, however LGTM reports it as having duplicate tags due to it seeing {% and %} appear multiple times in a single opening tag.