Skip to content

Commit

Permalink
Merge branch 'release/1.0.0' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Jan 21, 2025
2 parents 058680c + 89f6b50 commit 29c70da
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
8 changes: 7 additions & 1 deletion adverse_event_app/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
from edc_adverse_event.modeladmin_mixins import (
AeFollowupModelAdminMixin,
AeInitialModelAdminMixin,
HospitalizationModelAdminMixin,
)

from .models import AeFollowup, AeInitial
from .models import AeFollowup, AeInitial, Hospitalization


@admin.register(AeInitial)
Expand All @@ -17,3 +18,8 @@ class AeInitialAdmin(AeInitialModelAdminMixin, SimpleHistoryAdmin):
@admin.register(AeFollowup)
class AeFollowupAdmin(AeFollowupModelAdminMixin, SimpleHistoryAdmin):
pass


@admin.register(Hospitalization)
class HospitalizationAdmin(HospitalizationModelAdminMixin, SimpleHistoryAdmin):
pass
8 changes: 8 additions & 0 deletions adverse_event_app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
DeathReportModelMixin,
DeathReportTmgModelMixin,
DeathReportTmgSecondModelMixin,
HospitalizationModelMixin,
)


Expand Down Expand Up @@ -124,3 +125,10 @@ class Meta(DeathReportTmgModelMixin.Meta):
class DeathReportTmgSecond(DeathReportTmgSecondModelMixin, DeathReportTmg):
class Meta(DeathReportTmgSecondModelMixin.Meta):
proxy = True


class Hospitalization(
HospitalizationModelMixin, ActionModelMixin, SiteModelMixin, BaseUuidModel
):
class Meta(HospitalizationModelMixin.Meta):
pass
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class HospitalizationModelAdminMixin(
ModelAdminSubjectDashboardMixin,
ActionItemModelAdminMixin,
):
form = None

add_form_template: str = "edc_adverse_event/admin/change_form.html"
change_list_template = "edc_adverse_event/admin/change_list.html"
Expand Down

0 comments on commit 29c70da

Please sign in to comment.