Skip to content

Commit

Permalink
Merge branch 'release/1.0.0' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Jan 21, 2025
2 parents 0a9658d + 56b21a9 commit 22b6882
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ exclude: tests/etc/user-*

repos:
- repo: https://github.com/PyCQA/bandit
rev: 1.7.10
rev: 1.8.2
hooks:
- id: bandit
args:
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion edc_export/tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
BASE_DIR=base_dir,
ETC_DIR=str(base_dir / app_name / "tests" / "etc"),
SILENCED_SYSTEM_CHECKS=["sites.E101", "edc_navbar.E002", "edc_navbar.E003"],
EDC_BOOTSTRAP=3,
EDC_SITES_REGISTER_DEFAULT=True,
SUBJECT_SCREENING_MODEL="export_app.subjectscreening",
SUBJECT_CONSENT_MODEL="export_app.subjectconsent",
Expand Down
3 changes: 2 additions & 1 deletion edc_export/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def raise_if_prohibited_from_export_pii_group(username: str, groups: Iterable) -
{
"groups": format_html(
"This user is not allowed to export PII data. You may not add "
f"this user to the <U>{EXPORT_PII}</U> group."
"this user to the <U>{}</U> group.",
"EXPORT_PII",
)
}
)
3 changes: 1 addition & 2 deletions edc_export/views/export_models_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
from django.contrib import messages
from django.contrib.auth.models import User
from django.views.generic.base import TemplateView
from edc_dashboard.utils import get_bootstrap_version
from edc_dashboard.view_mixins import EdcViewMixin
from edc_navbar import NavbarViewMixin

from ..exportables import Exportables


class ExportModelsView(EdcViewMixin, NavbarViewMixin, TemplateView):
template_name = f"edc_export/bootstrap{get_bootstrap_version()}/export_models.html"
template_name = "edc_export/export_models.html"
navbar_name = "edc_export"
navbar_selected_item = "export"

Expand Down
3 changes: 1 addition & 2 deletions edc_export/views/export_selected_models_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from django.utils.html import format_html
from django.utils.safestring import mark_safe
from django.views.generic.base import TemplateView
from edc_dashboard.utils import get_bootstrap_version
from edc_dashboard.view_mixins import EdcViewMixin

from ..archive_exporter import (
Expand All @@ -39,7 +38,7 @@ class ExportModelsViewError(Exception):

class ExportSelectedModelsView(EdcViewMixin, TemplateView):
post_action_url = "edc_export:export_models_url"
template_name = f"edc_export/bootstrap{get_bootstrap_version()}/export_models.html"
template_name = "edc_export/export_models.html"

def get_context_data(self, **kwargs) -> dict:
if self.request.session.get("selected_models"):
Expand Down
3 changes: 1 addition & 2 deletions edc_export/views/home_view.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from django.views.generic import TemplateView
from edc_dashboard.utils import get_bootstrap_version
from edc_dashboard.view_mixins import EdcViewMixin
from edc_navbar import NavbarViewMixin


class HomeView(EdcViewMixin, NavbarViewMixin, TemplateView):
template_name = f"edc_export/bootstrap{get_bootstrap_version()}/home.html"
template_name = "edc_export/home.html"
navbar_name = "edc_export"
navbar_selected_item = "export"

0 comments on commit 22b6882

Please sign in to comment.