Skip to content

Commit

Permalink
Merge branch 'release/0.3.85'
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanWillitts committed Aug 15, 2024
2 parents 17000e5 + da2be74 commit 8477543
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fail-fast: false
matrix:
python-version: ['3.12']
django-version: ['4.2', '5.0', 'dev']
django-version: ['4.2', '5.0', '5.1', 'dev']

services:
mysql:
Expand Down
6 changes: 1 addition & 5 deletions edc_adverse_event/templatetags/edc_adverse_event_extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from edc_constants.constants import CLOSED, OPEN, OTHER, YES
from edc_dashboard.utils import get_bootstrap_version
from edc_model_admin.utils import add_to_messages_once
from edc_utils import get_utcnow
from edc_utils import escape_braces, get_utcnow

from ..constants import AE_WITHDRAWN, TMG_ROLE
from ..utils import get_adverse_event_app_label, get_ae_model, has_valid_tmg_perms
Expand Down Expand Up @@ -53,10 +53,6 @@ def wrapx(text: str, length: int) -> str:
return text


def escape_braces(text: str) -> str:
return text.replace("{", "{{").replace("}", "}}")


def select_ae_template(relative_path):
"""Returns a template object."""
local_path = f"{get_adverse_event_app_label()}/bootstrap{get_bootstrap_version()}/"
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ exclude_lines = [
legacy_tox_ini = """
[tox]
envlist =
py{312}-dj{42,50,dev},
py{312}-dj{42,50,51,dev},
lint
isolated_build = true
Expand All @@ -48,6 +48,7 @@ python =
DJANGO =
4.2: dj42
5.0: dj50
5.1: dj51
dev: djdev, lint
[testenv]
Expand All @@ -57,7 +58,8 @@ deps =
-r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/edc.txt
-r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/third_party_dev.txt
dj42: Django>=4.2,<5.0
dj50: Django>=5.0
dj50: Django>=5.0,<5.1
dj51: Django>=5.1
djdev: https://github.com/django/django/tarball/main
commands =
Expand Down

0 comments on commit 8477543

Please sign in to comment.