[Django]-Django: How to avoid duplicated html id for showing field twice in the same form?

1👍

If you are using

{{ form.element }}

You can do the following:

{{ form.element|attr:"id:another_name" }}


Sorry didn’t realized the template filter i used:
http://djangosnippets.org/snippets/729/

I just changed = by :

Leave a comment