Opened 5 years ago
Closed 5 years ago
#31100 closed Uncategorized (invalid)
Why baseformset method "non_form_errors" is not property
Reported by: | Vinay Kumar | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | 2.2 |
Severity: | Normal | Keywords: | formset |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Why baseformset method "non_form_errors" is not property
on Shell its working fine
>> formset.non_field_errors() ['Some error.']
but in below case its not working.
{% if formset.non_field_errors %} <div class="alert alert-danger" role="alert"> {% for error in formset.non_field_errors %} {{ error }} {% endfor %} </div> {% endif %}
this below code is also not displaying any error.
{{formset.non_field_errors}}
Note:
See TracTickets
for help on using tickets.
Hi. There's any number of things that could be going wrong in your code. Alas, the issue tracker is not an appropriate support channel — you'll need to ask somewhere else.
Please see TicketClosingReasons/UseSupportChannels.