Skip to content

{{ field.errors }} doesn't work. #19

@k-funk

Description

@k-funk

https://docs.djangoproject.com/en/dev/topics/forms/#looping-over-the-form-s-fields

In django forms, I use custom django template looping to output html the way that makes most sense. I usually do this by looping over the fields in the form, and within those fields, outputting the field.errors near the field and field.label_tag. It ouputs a

    .

    If this isn't possible, please make a note of it in the docs. I just spent a couple hours trying to figure out why there was just a memory-location string being output :P

    Also, looping over field.errors doesn't work either (probably the same issue).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions