-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): units for variable thresholds (#588)
- Store display units for variable thresholds separately from variable units. - Normalise threshold units to `pmol/L` in the Results tables.
- Loading branch information
1 parent
ced28aa
commit 3faa1ec
Showing
6 changed files
with
155 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
pkpdapp/pkpdapp/migrations/0018_variable_threshold_unit.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# | ||
# This file is part of PKPDApp (https://github.com/pkpdapp-team/pkpdapp) which | ||
# is released under the BSD 3-clause license. See accompanying LICENSE.md for | ||
# copyright notice and full license details. | ||
# | ||
# Generated by Django 3.2.25 on 2024-11-25 16:37 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('pkpdapp', '0017_auto_20241125_1415'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='variable', | ||
name='threshold_unit', | ||
field=models.ForeignKey( | ||
blank=True, | ||
help_text='unit for the threshold values', | ||
null=True, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name='thresholds', | ||
to='pkpdapp.unit' | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters