I'm attempting to add an attribute to a django crispy form using Django-Widget-Tweaks. I followed instructions, however, instead of adding the 'disabled' attribute to the existing field, it's adding a whole new field to the form with the same name, id, class, etc and includes my'disabled' attribute (lol). Here's my widget tweak code...
{% crispy registration_form %}
{{ registration_form.net_profit|attr:"disabled" }}
This is an image to the inspected html code that is generated. Sorry, I couldn't figure out how to copy the code.:
Any help is appreciated!