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

Remove fallback form rendering from uncrispified forms #3183

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

johannaengland
Copy link
Contributor

We decided that the template web/templates/custom_crispy_templates/_form_content.html has enough fallback by itself

For more information see #3140 and #3157.

Copy link

github-actions bot commented Nov 12, 2024

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 992 0 11.14s
✅ PYTHON ruff 987 0 0.1s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

Copy link

github-actions bot commented Nov 12, 2024

Test results

    9 files      9 suites   8m 21s ⏱️
2 136 tests 2 136 ✅ 0 💤 0 ❌
4 011 runs  4 011 ✅ 0 💤 0 ❌

Results for commit 835e11c.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.39%. Comparing base (8bc62b0) to head (835e11c).
Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3183   +/-   ##
=======================================
  Coverage   60.39%   60.39%           
=======================================
  Files         605      605           
  Lines       43701    43701           
  Branches       48       48           
=======================================
  Hits        26393    26393           
  Misses      17296    17296           
  Partials       12       12           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@johannaengland johannaengland force-pushed the cleanup/remove-if-form-attrs-check branch from 50bfca2 to de81e35 Compare November 12, 2024 14:43
Copy link
Contributor

@podliashanyk podliashanyk left a comment

Choose a reason for hiding this comment

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

Nice! See comments below.

And seems like self.attrs = set_flat_form_attributes() is redundant in DeviceGroupForm as well?

@johannaengland
Copy link
Contributor Author

Yes, I believe we can remove calls to set_flat_form_attributes without parameters. But I would do that in another PR, will do that soon!

@johannaengland johannaengland force-pushed the cleanup/remove-if-form-attrs-check branch from de81e35 to 835e11c Compare November 13, 2024 10:36
Copy link

sonarcloud bot commented Nov 13, 2024

@johannaengland johannaengland merged commit 8b8bd55 into master Nov 13, 2024
13 of 14 checks passed
@johannaengland johannaengland deleted the cleanup/remove-if-form-attrs-check branch November 13, 2024 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants