I\'ve got a bit of Django form code that looks like this:
class GalleryAdminForm(forms.ModelForm):
auto_id=False
order = forms.CharField(widget=forms
Oraculum has got it right. You shouldn't be cleaning this up on the client side. If it is clutter, then you shouldn't be sending it to client at all. Building on Oraculum's answer, you should use a custom form template because you you probably still want the hidden values in the form.
{% for field in form.visible_fields %}
{{ field.errors }}
{{ field.label_tag }}
{{ field }}
{% endfor %}
{% for field in form.hidden_fields %}
{% endfor %}
Using a custom form template to control hidden fields is cleaner because it doesn't send extraneous info to the client.