Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #32905 -- Added CSS class for non-form errors of formsets. #14608

Merged
merged 1 commit into from Jul 15, 2021
Merged

Fixed #32905 -- Added CSS class for non-form errors of formsets. #14608

merged 1 commit into from Jul 15, 2021

Conversation

tiesjan
Copy link
Contributor

@tiesjan tiesjan commented Jul 7, 2021

ticket-32905

BaseFormSet.non_form_errors() now adds the additional class nonform when rendering the error list. This allows a custom ErrorList class to make a distinction in field errors, non-field errors of forms and non-form errors of FormSets when rendering error messages.

@github-actions
Copy link

github-actions bot commented Jul 7, 2021

Hello @tiesjan! Thank you for your contribution 💪

As it's your first contribution be sure to check out the patch review checklist.

If you're fixing a ticket from Trac make sure to set the "Has patch" flag and include a link to this PR in the ticket!

If you have any design or process questions then you can ask in the Django forum.

Welcome aboard ⛵️!

@felixxm felixxm self-assigned this Jul 13, 2021
@felixxm felixxm changed the title Fixed #32905 -- Added nonform class for non-form errors of FormSets Fixed #32905 -- Added 'nonform' CSS class for non-form errors of formsets. Jul 13, 2021
Copy link
Member

@felixxm felixxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tiesjan Thanks for this patch 👍

docs/releases/4.0.txt Outdated Show resolved Hide resolved
docs/topics/forms/formsets.txt Outdated Show resolved Hide resolved
docs/topics/forms/formsets.txt Outdated Show resolved Hide resolved
tests/admin_views/tests.py Outdated Show resolved Hide resolved
tests/forms_tests/tests/test_formsets.py Outdated Show resolved Hide resolved
@tiesjan
Copy link
Contributor Author

tiesjan commented Jul 14, 2021

Thanks a lot for the review, @felixxm. I've addressed your points in the latest commit. Let me know what you think!

@felixxm felixxm changed the title Fixed #32905 -- Added 'nonform' CSS class for non-form errors of formsets. Fixed #32905 -- Added CSS class for non-form errors of formsets. Jul 15, 2021
@felixxm
Copy link
Member

felixxm commented Jul 15, 2021

@tiesjan Thanks 👍 Welcome aboard ⛵

@felixxm felixxm merged commit 84400d2 into django:main Jul 15, 2021
@tiesjan tiesjan deleted the ticket-32905-nonform-css-class branch July 15, 2021 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants