meta-edc 1.2.3__py3-none-any.whl → 1.2.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of meta-edc might be problematic. Click here for more details.

@@ -7,10 +7,13 @@ from .defaults import * # noqa
7
7
 
8
8
  sys.stdout.write(f"Settings file {__file__}\n")
9
9
 
10
+ # clear cache after changing site, for example:
11
+ # from django.core.cache import cache
12
+ # cache.clear()
10
13
  # TZ Sites:
11
- # SITE_ID = SiteID(default=20) # Amana
14
+ SITE_ID = SiteID(default=20) # Amana
12
15
  # SITE_ID = SiteID(default=10) # Hindu Mandal
13
- SITE_ID = SiteID(default=40) # Mwananyamala
16
+ # SITE_ID = SiteID(default=40) # Mwananyamala
14
17
  # SITE_ID = SiteID(default=50) # Mbagala
15
18
  # SITE_ID = SiteID(default=60) # Mnazi-Moja
16
19
  # SITE_ID = SiteID(default=30) # Temeke
@@ -521,6 +521,9 @@ DATA_DICTIONARY_APP_LABELS = [
521
521
  # edc_form_runners
522
522
  EDC_FORM_RUNNERS_ENABLED = False
523
523
 
524
+ # edc_pdf_reports
525
+ EDC_PDF_REPORTS_DRAW_LOGO = False
526
+
524
527
  # edc_protocol
525
528
  EDC_PROTOCOL = env.str("EDC_PROTOCOL")
526
529
  EDC_PROTOCOL_INSTITUTION_NAME = env.str("EDC_PROTOCOL_INSTITUTION_NAME")
meta_edc/settings/live.py CHANGED
@@ -11,3 +11,4 @@ EDC_SITES_UAT_DOMAIN = False
11
11
  EDC_MODEL_ADMIN_CSS_THEME = "edc_indigo"
12
12
  LIVE_SYSTEM = True
13
13
  EDC_SITES_DOMAIN_SUFFIX = "meta4.clinicedc.org"
14
+ AUTO_CREATE_KEYS = False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meta-edc
3
- Version: 1.2.3
3
+ Version: 1.2.5
4
4
  Summary: META Trial EDC (https://www.isrctn.com/ISRCTN76157257)
5
5
  Keywords: django,clinicedc,META EDC,EDC,clinical trials,META Trial,ISRCTN76157257
6
6
  Author: Erik van Widenfelt, Jonathan Willitts
@@ -15,12 +15,12 @@ Classifier: Intended Audience :: Science/Research
15
15
  Classifier: Operating System :: OS Independent
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Classifier: Programming Language :: Python :: 3.13
18
- Requires-Dist: clinicedc>=2.0.32
18
+ Requires-Dist: clinicedc>=2.0.39
19
19
  Requires-Dist: edc-he>=1.2.0
20
20
  Requires-Dist: edc-microscopy>=1.2.0
21
21
  Requires-Dist: edc-mnsi>=1.2.0
22
22
  Requires-Dist: edc-phq9>=1.1.0
23
- Requires-Dist: edc-qol>=1.2.0
23
+ Requires-Dist: edc-qol>=1.2.1
24
24
  Requires-Dist: notebook>=7.4.7
25
25
  Requires-Python: >=3.12, <3.14
26
26
  Description-Content-Type: text/x-rst
@@ -89,8 +89,8 @@ Assuming you are logged into the account ``myaccount``:
89
89
  mkdir ~/edc && \
90
90
  cd ~/edc && \
91
91
  uv venv && \
92
- uv pip install -U meta-edc==1.2.2 && \
93
- wget https://raw.githubusercontent.com/meta-trial/meta-edc/1.2.2/manage.py && \
92
+ uv pip install -U meta-edc==1.2.4 && \
93
+ wget https://raw.githubusercontent.com/meta-trial/meta-edc/1.2.4/manage.py && \
94
94
  uv pip freeze | grep meta-edc
95
95
 
96
96
  Copy your ``.env`` file to ``~/.etc``.
@@ -140,7 +140,7 @@ From the above example:
140
140
 
141
141
  cd ~/edc && \
142
142
  uv venv --clear && \
143
- uv pip install -U meta-edc==1.2.2 && \
143
+ uv pip install -U meta-edc==1.2.4 && \
144
144
  wget -O manage.py https://raw.githubusercontent.com/meta-trial/meta-edc/1.1.10/manage.py && \
145
145
  uv pip freeze | grep meta-edc && \
146
146
  python manage.py check
@@ -230,9 +230,9 @@ meta_edc/model_callers.py,sha256=PjQEW7Kp5HHcUMdmz7dvxg53HvGJHXUKr6QTd-4hsyE,133
230
230
  meta_edc/models.py,sha256=DLA-hDdFszAVNCe1sZqVoLmIXifFW0HeZsipP9D1Ic4,46
231
231
  meta_edc/navbars.py,sha256=Rl2a62elRVTbkGVV9toYwwT388TE1BI7-1j1w2v1m-I,1208
232
232
  meta_edc/settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
233
- meta_edc/settings/debug.py,sha256=XfYEL34kzpyiXQkTil34-r-NVKhmxs_kVQP2u5XtfVE,1313
234
- meta_edc/settings/defaults.py,sha256=lXN6DoEbUudUQSqJ1BJ8dVcAo4q-ZoEMxbnN8xkMSro,20381
235
- meta_edc/settings/live.py,sha256=A4gDWiUIgcRDUWaT4oEOHkGmaeLRPNsr7MPrl0r8AuI,289
233
+ meta_edc/settings/debug.py,sha256=9QOu1wIjY-HpvyoNAnDByLFt5ao2ZKrb1Nc99A2gF18,1415
234
+ meta_edc/settings/defaults.py,sha256=tLqYZmfNF4F-TkVUAsAvG4z-a7TS7u_nkt7OUFWuY-s,20434
235
+ meta_edc/settings/live.py,sha256=vhlewV0mOBhnJkU7NWPDRst-By9LM1kVxPFPyGqAHTI,314
236
236
  meta_edc/settings/logging.py,sha256=7RQ2guyuMhK3MtoojmnD0CVqiFZZ6ZT6zc7Rwn0nYGk,2115
237
237
  meta_edc/settings/minimal.py,sha256=ZZM7hZ-3AH33nGpLJLbYgs50oa5meKv_aGShidnm9G0,511
238
238
  meta_edc/settings/uat.py,sha256=kA6Aw2qDeh6gXNJgtiR93D0rWmBNHswcrufPk40RYhc,295
@@ -551,12 +551,14 @@ meta_reports/migrations/0057_auto_20250422_2224.py,sha256=pGj-5Cr__ScaNtb8ROzm_4
551
551
  meta_reports/migrations/0058_auto_20250422_2232.py,sha256=SZ2RS5jUVhgnirgU2XAU-EIDtsbUWD1GDl5jg_hMTrc,9743
552
552
  meta_reports/migrations/0059_alter_endpoints_created_and_more.py,sha256=pLpV2JkdlclK9J7zwMrEvHsORk7zKBIWoo8RkvaraPs,5633
553
553
  meta_reports/migrations/0060_auto_20250926_0242.py,sha256=gdaOXPmSHFj7W8u94dAi45oL6w_c8f0d0GH-RoOmRNQ,192265
554
+ meta_reports/migrations/0061_auto_20251004_0043.py,sha256=8q29xI4sujObBX2Y0772n9Hs2IbEcuvzjelR4qXh03c,672
555
+ meta_reports/migrations/0062_auto_20251004_0106.py,sha256=1pvCwV0QPea2k2bp4YN3BpSdHMVwb8YuXh4dwi-EOcA,683
554
556
  meta_reports/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
555
557
  meta_reports/models/__init__.py,sha256=uWbQPzDXUxdfuau5aaUDkqMynJeMOKgS5e-8xjuD53A,798
556
558
  meta_reports/models/dbviews/README,sha256=GdeboB7Xqb-Qo_rE1ondcxP8Ps93MIjLzCePQCePig0,686
557
559
  meta_reports/models/dbviews/__init__.py,sha256=VXO77yB6T1OivjSusNVSoga0kOHArNfiHyL_jqgXvmE,874
558
560
  meta_reports/models/dbviews/glucose_summary/__init__.py,sha256=nlexRHQIIRs1wtTV2JNGY8ajiRIw4l8qqCOX5r366MU,146
559
- meta_reports/models/dbviews/glucose_summary/unmanaged_model.py,sha256=IKAmjWZ3FPbw7L9cf6JMnBIT0GsD2uXMUr_IXDKBygg,1417
561
+ meta_reports/models/dbviews/glucose_summary/unmanaged_model.py,sha256=aNY_zaJ99TVDGKlUVQAbg3l-F8sK-ZCfABQV-trLvAY,1501
560
562
  meta_reports/models/dbviews/glucose_summary/view_definition.py,sha256=mFv0Y6OQM6gwKRyNuTsJApeW6ehZmLNgtkaDVIIyuiQ,1735
561
563
  meta_reports/models/dbviews/imp_substitutions/__init__.py,sha256=_4j_SsN416y1O3f-agHkNwD3uiWLQ2JyRphREnCkhOQ,78
562
564
  meta_reports/models/dbviews/imp_substitutions/unmanaged_model.py,sha256=WtTJ2aV_63vLzD0LlEbBjRcryfhRsvVmJgVu90UFzp8,1239
@@ -1144,7 +1146,7 @@ meta_visit_schedule/visit_schedules/phase_three/schedule.py,sha256=LU1HRaV6o1UeK
1144
1146
  meta_visit_schedule/visit_schedules/phase_three/schedule_dm_referral.py,sha256=q12p5wXc2D7lSiJVBnoSQw8Q3vL6uDx1t3PuDJO-Z-U,1735
1145
1147
  meta_visit_schedule/visit_schedules/phase_three/schedule_pregnancy.py,sha256=bEpbpCX3vfZmnsqudr0z8PU5kiaX4ws1sO5Im98Mo28,1106
1146
1148
  meta_visit_schedule/visit_schedules/phase_three/visit_schedule.py,sha256=ak4qazeKlpIlvpqrK9hDDO0fwWuWyvb4Ec-JU31IJxc,654
1147
- meta_edc-1.2.3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
1148
- meta_edc-1.2.3.dist-info/WHEEL,sha256=-neZj6nU9KAMg2CnCY6T3w8J53nx1kFGw_9HfoSzM60,79
1149
- meta_edc-1.2.3.dist-info/METADATA,sha256=IPjba51apleA6LFHlMmvN6LHNSZnoDiyQwSNp0O46SY,5163
1150
- meta_edc-1.2.3.dist-info/RECORD,,
1149
+ meta_edc-1.2.5.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
1150
+ meta_edc-1.2.5.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
1151
+ meta_edc-1.2.5.dist-info/METADATA,sha256=mrdYA8db3WVi5cA2HwXhu2opy0RVPBRrC3rWAz--vdE,5163
1152
+ meta_edc-1.2.5.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.8.22
2
+ Generator: uv 0.8.24
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ # Generated by Django 5.2.7 on 2025-10-03 21:43
2
+
3
+ from django.db import migrations
4
+
5
+
6
+ def fix_report_models(apps, schema_editor):
7
+ note_cls = apps.get_model("edc_qareports", "Note")
8
+ note_cls.objects.filter(report_model="onstudy_missing_values_view").update(
9
+ report_model="meta_reports.onstudy_missing_values_view"
10
+ )
11
+ note_cls.objects.filter(report_model="onstudy_missing_lab_values_view").update(
12
+ report_model="meta_reports.onstudy_missing_lab_values_view"
13
+ )
14
+
15
+
16
+ class Migration(migrations.Migration):
17
+ dependencies = [
18
+ ("meta_reports", "0060_auto_20250926_0242"),
19
+ ]
20
+
21
+ operations = [migrations.RunPython(fix_report_models)]
@@ -0,0 +1,21 @@
1
+ # Generated by Django 5.2.7 on 2025-10-03 22:06
2
+
3
+ from django.db import migrations
4
+
5
+
6
+ def fix_report_models(apps, schema_editor):
7
+ note_cls = apps.get_model("edc_qareports", "Note")
8
+ note_cls.objects.filter(report_model="meta_reports.onstudy_missing_values_view").update(
9
+ report_model="meta_reports.onstudymissingvalues"
10
+ )
11
+ note_cls.objects.filter(
12
+ report_model="meta_reports.onstudy_missing_lab_values_view"
13
+ ).update(report_model="meta_reports.onstudymissinglabvalues")
14
+
15
+
16
+ class Migration(migrations.Migration):
17
+ dependencies = [
18
+ ("meta_reports", "0061_auto_20251004_0043"),
19
+ ]
20
+
21
+ operations = [migrations.RunPython(fix_report_models)]
@@ -1,5 +1,6 @@
1
1
  from django.db import models
2
2
  from django_db_views.db_view import DBView
3
+ from edc_constants.constants import NULL_STRING
3
4
  from edc_qareports.model_mixins import QaReportModelMixin, qa_reports_permissions
4
5
 
5
6
  from .view_definition import get_view_definition
@@ -8,17 +9,17 @@ from .view_definition import get_view_definition
8
9
  class GlucoseSummary(QaReportModelMixin, DBView):
9
10
  fbg_value = models.DecimalField(max_digits=8, decimal_places=2, null=True)
10
11
 
11
- fbg_units = models.CharField(max_length=15, default="")
12
+ fbg_units = models.CharField(max_length=15, default=NULL_STRING)
12
13
 
13
14
  fbg_datetime = models.DateTimeField(null=True)
14
15
 
15
16
  ogtt_value = models.DecimalField(max_digits=8, decimal_places=2, null=True)
16
17
 
17
- ogtt_units = models.CharField(max_length=15, default="")
18
+ ogtt_units = models.CharField(max_length=15, default=NULL_STRING)
18
19
 
19
20
  ogtt_datetime = models.DateTimeField(null=True)
20
21
 
21
- fasted = models.CharField(max_length=15, default="")
22
+ fasted = models.CharField(max_length=15, default=NULL_STRING)
22
23
 
23
24
  fasting_duration_delta = models.DurationField(
24
25
  verbose_name="Fasting duration (hrs)", null=True
@@ -34,7 +35,7 @@ class GlucoseSummary(QaReportModelMixin, DBView):
34
35
 
35
36
  offstudy_datetime = models.DateTimeField(null=True)
36
37
 
37
- source = models.CharField(max_length=35, default="")
38
+ source = models.CharField(max_length=35, default=NULL_STRING)
38
39
 
39
40
  view_definition = get_view_definition()
40
41