Skip to content

Commit

Permalink
Move escape_braces to edc_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanWillitts committed Aug 14, 2024
1 parent 17000e5 commit 5779909
Showing 1 changed file with 1 addition and 5 deletions.
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

0 comments on commit 5779909

Please sign in to comment.