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 88eaf01 + 2ddfc94 commit adf9211
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 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
13 changes: 10 additions & 3 deletions edc_glucose/model_mixins/ogtt_model_mixin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from django.db import models
from django.utils.html import format_html
from django.utils.safestring import mark_safe
from edc_constants.constants import NOT_APPLICABLE
from edc_lab.choices import GLUCOSE_UNITS_NA, RESULT_QUANTIFIER
from edc_lab.constants import EQ
Expand All @@ -23,7 +24,10 @@ class Meta:
),
f"{utest_id}_value": models.DecimalField(
verbose_name=format_html(
"Blood glucose measure 2hrs <u>after</u> oral glucose solution given"
"{}",
mark_safe(
"Blood glucose measure 2hrs <u>after</u> oral glucose solution given"
), # nosec B703, B308
),
max_digits=8,
decimal_places=2,
Expand All @@ -45,8 +49,11 @@ class Meta:
),
f"{utest_id}_datetime": models.DateTimeField(
verbose_name=format_html(
"Date/time blood glucose measured 2hrs <u>after</u> "
"oral glucose solution given"
"{}",
mark_safe(
"Date/time blood glucose measured 2hrs <u>after</u> "
"oral glucose solution given"
), # nosec B703, B308
),
validators=[datetime_not_future],
blank=True,
Expand Down

0 comments on commit adf9211

Please sign in to comment.