-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix blank text in study evaluations (#648)
* fix blank text * fix widget * (unrelated) rename study extraction to study details Co-authored-by: Daniel Rabstejnek <[email protected]>
- Loading branch information
1 parent
0906eb7
commit d094598
Showing
9 changed files
with
67 additions
and
34 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from django.db import migrations | ||
|
||
from ..constants import NR_SCORES | ||
|
||
|
||
def forwards_func(apps, schema_editor): | ||
RiskOfBiasScore = apps.get_model("riskofbias", "RiskOfBiasScore") | ||
RiskOfBiasScore.objects.filter(score__in=NR_SCORES, notes="<p> </p>").update(notes="<p>-</p>") | ||
|
||
|
||
def reverse_func(apps, schema_editor): | ||
RiskOfBiasScore = apps.get_model("riskofbias", "RiskOfBiasScore") | ||
RiskOfBiasScore.objects.filter(score__in=NR_SCORES, notes="<p>-</p>").update(notes="<p> </p>") | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [("riskofbias", "0025_alter_riskofbias_study")] | ||
operations = [migrations.RunPython(forwards_func, reverse_code=reverse_func)] |
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