Skip to content

Commit

Permalink
Merge branch 'release/0.3.25' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Aug 1, 2023
2 parents 87759e8 + 782cf96 commit 3c14f01
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions edc_ltfu/modelform_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from edc_form_validators import FormValidator
from edc_utils import convert_php_dateformat
from edc_visit_tracking.constants import MISSED_VISIT
from edc_visit_tracking.utils import get_subject_visit_model_cls
from edc_visit_tracking.utils import get_related_visit_model_cls

from .constants import LOST_TO_FOLLOWUP

Expand All @@ -31,7 +31,7 @@ def clean(self):

def check_if_last_visit_was_missed(self):
last_obj = (
get_subject_visit_model_cls()
get_related_visit_model_cls()
.objects.filter(
appointment__subject_identifier=self.cleaned_data.get("subject_identifier"),
)
Expand Down
4 changes: 2 additions & 2 deletions edc_ltfu/tests/tests/test_ltfu.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from edc_action_item import site_action_items
from edc_action_item.models import ActionItem
from edc_adverse_event.constants import DEATH_REPORT_ACTION
from edc_appointment.tests.appointment_test_case_mixin import AppointmentTestCaseMixin
from edc_appointment.tests.test_case_mixins import AppointmentTestCaseMixin
from edc_consent import site_consents
from edc_constants.constants import CLOSED, HOSPITALIZED, OTHER, YES
from edc_facility.import_holidays import import_holidays
Expand Down Expand Up @@ -60,7 +60,7 @@ def setUp(self):

site_reference_configs.registry = {}
site_reference_configs.register_from_visit_schedule(
visit_models={"edc_appointment.appointment": "edc_metadata.subjectvisit"}
visit_models={"edc_appointment.appointment": "edc_visit_tracking.subjectvisit"}
)

self.subject_identifier = "111111111"
Expand Down
2 changes: 1 addition & 1 deletion runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
ETC_DIR=join(base_dir, app_name, "tests", "etc"),
SUBJECT_SCREENING_MODEL="edc_metadata.subjectscreening",
SUBJECT_CONSENT_MODEL="edc_metadata.subjectconsent",
SUBJECT_VISIT_MODEL="edc_metadata.subjectvisit",
SUBJECT_VISIT_MODEL="edc_visit_tracking.subjectvisit",
SUBJECT_VISIT_MISSED_MODEL="edc_metadata.subjectvisitmissed",
INSTALLED_APPS=[
"django.contrib.admin",
Expand Down

0 comments on commit 3c14f01

Please sign in to comment.