79484978

Date: 2025-03-04 22:05:47
Score: 0.5
Natty:
Report link

In addition to the answer supplied by @filippo-lauria, you should check for the existence of errors:

...
 <label for="{{ form.firstname.id_for_label }}">First Name:</label>
   {{ form.firstname }}
   {% if form.firstname.errors %}
       {{ form.firstname.errors }}
   {% endif %}
 ...

As of Django 5.1, you will get template errors without this check if errors don't exist.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @filippo-lauria
Posted by: Jesuisme