Beetje smerig dus als je wat beters weet, lmk!
The check on 'all' indicates a non-field error right? So maybe using this is more clear: https://docs.djangoproject.com/en/4.1/ref/forms/api/#django.forms.Form.non_field_errors (see also https://stackoverflow.com/a/2525921)
'form.error.items' are combined (so including the non-field errors). So if you do that you have to filter them out of all the items
Beetje smerig dus als je wat beters weet, lmk!
The check on 'all' indicates a non-field error right? So maybe using this is more clear: https://docs.djangoproject.com/en/4.1/ref/forms/api/#django.forms.Form.non_field_errors (see also https://stackoverflow.com/a/2525921)
'form.error.items' are combined (so including the non-field errors). So if you do that you have to filter them out of all the items