Skip to content

Commit

Permalink
remove unused refs to model_wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Jan 25, 2024
1 parent 8f9d457 commit 5d87c0a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
7 changes: 1 addition & 6 deletions edc_action_item/tests/tests/test_view.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from django.test import RequestFactory, TestCase
from django.views.generic.base import ContextMixin, View
from edc_model_wrapper import ModelWrapper
from edc_sites.utils import get_site_model_cls
from edc_test_utils.get_user_for_tests import get_user_for_tests

Expand All @@ -10,12 +9,8 @@
from ..test_case_mixin import TestCaseMixin


class MyModelWrapper(ModelWrapper):
next_url_name = "subject_dashboard_url"


class MyActionItemViewMixin(ActionItemViewMixin, ContextMixin, View):
action_item_model_wrapper_cls = MyModelWrapper
pass


class TestAction(TestCaseMixin, TestCase):
Expand Down
3 changes: 0 additions & 3 deletions edc_action_item/view_mixins/action_item_view_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@
from edc_constants.constants import NEW, OPEN
from edc_sites.site import sites

# from ..model_wrappers import ActionItemModelWrapper
from ..models import ActionItem


class ActionItemViewMixin:
# action_item_model_wrapper_cls = ActionItemModelWrapper

def get_context_data(self, **kwargs) -> dict[str, Any]:
kwargs.update(open_action_items=self.open_action_items)
return super().get_context_data(**kwargs)
Expand Down

0 comments on commit 5d87c0a

Please sign in to comment.