Tell if a Django Field is required from template

django, django-templates

Solution

{% if field.field.required %}

From this snippet

Problem

I'm rendering a form. I would like to put a mark next to all the fields that must be filled in. Simple stuff usually... but I've no idea how to access that information! ``` {% if field.required %}REQUIRED!!{% endif %} ``` doesn't bring any love...

Original source

Related problems