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

Add support for using gettext in fieldset headers #489

Merged
merged 4 commits into from
Jul 13, 2022

Conversation

alexkiro
Copy link
Contributor

Suggested fix for #488

A simple fix that adds support for using a tuple instead of a dictionary for CONSTANCE_CONFIG_FIELDSETS. This avoids the need to hash the fieldset header and therefore allows using the gettext_lazy function for them.


Along the change itself, I've also included a test and an update to the documentation.

@codecov
Copy link

codecov bot commented Jul 13, 2022

Codecov Report

Merging #489 (7114a1e) into master (807f98c) will not change coverage.
The diff coverage is 77.77%.

@@           Coverage Diff           @@
##           master     #489   +/-   ##
=======================================
  Coverage   83.33%   83.33%           
=======================================
  Files          16       16           
  Lines         594      600    +6     
  Branches      118      120    +2     
=======================================
+ Hits          495      500    +5     
- Misses         66       67    +1     
  Partials       33       33           
Impacted Files Coverage Δ
constance/checks.py 73.91% <50.00%> (-6.09%) ⬇️
constance/admin.py 88.50% <100.00%> (+0.68%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 807f98c...7114a1e. Read the comment docs.

@camilonova camilonova merged commit 55aed5d into jazzband:master Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants