Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

change forms labels django

<form>
    {% for field in form %}
        <label class="my_class" for="{{ field.auto_id }}">{{ field.label }}</label>
        {{ field }}
    {% endfor %}
    <button type="submit">Submit</button>
</form>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #forms #labels #django
ADD COMMENT
Topic
Name
3+7 =