forked from ambition-study/ambition-screening
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
1,135 additions
and
567 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,30 @@ | ||
from django_revision.modeladmin_mixin import ModelAdminRevisionMixin | ||
from edc_base.sites import ModelAdminSiteMixin | ||
from edc_model_admin import ( | ||
ModelAdminNextUrlRedirectMixin, ModelAdminFormInstructionsMixin, | ||
ModelAdminFormAutoNumberMixin, ModelAdminAuditFieldsMixin, | ||
ModelAdminReadOnlyMixin, ModelAdminInstitutionMixin, | ||
ModelAdminRedirectOnDeleteMixin) | ||
ModelAdminNextUrlRedirectMixin, | ||
ModelAdminFormInstructionsMixin, | ||
ModelAdminFormAutoNumberMixin, | ||
ModelAdminAuditFieldsMixin, | ||
ModelAdminReadOnlyMixin, | ||
ModelAdminInstitutionMixin, | ||
ModelAdminRedirectOnDeleteMixin, | ||
) | ||
from edc_metadata import NextFormGetter | ||
|
||
|
||
class ModelAdminMixin(ModelAdminNextUrlRedirectMixin, ModelAdminFormInstructionsMixin, | ||
ModelAdminFormAutoNumberMixin, ModelAdminRevisionMixin, | ||
ModelAdminAuditFieldsMixin, ModelAdminReadOnlyMixin, | ||
ModelAdminInstitutionMixin, ModelAdminRedirectOnDeleteMixin, | ||
ModelAdminSiteMixin): | ||
class ModelAdminMixin( | ||
ModelAdminNextUrlRedirectMixin, | ||
ModelAdminFormInstructionsMixin, | ||
ModelAdminFormAutoNumberMixin, | ||
ModelAdminRevisionMixin, | ||
ModelAdminAuditFieldsMixin, | ||
ModelAdminReadOnlyMixin, | ||
ModelAdminInstitutionMixin, | ||
ModelAdminRedirectOnDeleteMixin, | ||
ModelAdminSiteMixin, | ||
): | ||
|
||
list_per_page = 10 | ||
date_hierarchy = 'modified' | ||
empty_value_display = '-' | ||
date_hierarchy = "modified" | ||
empty_value_display = "-" | ||
next_form_getter_cls = NextFormGetter |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from edc_constants.constants import YES, NO, NOT_APPLICABLE | ||
|
||
PREG_YES_NO_NA = ( | ||
(YES, 'Yes'), | ||
(NO, 'No'), | ||
(NOT_APPLICABLE, 'Not Applicable: e.g. male, post-menopausal'), | ||
(YES, "Yes"), | ||
(NO, "No"), | ||
(NOT_APPLICABLE, "Not Applicable: e.g. male, post-menopausal"), | ||
) |
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
Oops, something went wrong.