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

Fix show_certificates_tab #268

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Changelog
10.0.1 (unreleased)
-------------------

- Nothing changed yet.
- Show certificate overview if “Enable certificates” is active in the country
(`#2485 <https://github.com/syslabcom/scrum/issues/2485>`_)
[reinhardt]


10.0.0 (2024-07-31)
Expand Down
2 changes: 1 addition & 1 deletion src/osha/oira/client/browser/webhelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def show_certificate_status_box(self):
@property
@memoize
def show_certificates_tab(self):
country = self.country
country = self.content_country_obj
return self.use_training_module or getattr(
country, "certificates_enabled", False
)
Expand Down
Loading