Skip to content

Commit

Permalink
fix ModelSignal.connect() missing 1 required positional argument: 're…
Browse files Browse the repository at this point in the history
…ceiver'
  • Loading branch information
kelvin-muchiri committed Jan 16, 2025
1 parent 6ddce00 commit 84adaab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion onadata/apps/api/tests/viewsets/test_abstract_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
from onadata.apps.main.models import MetaData, UserProfile
from onadata.apps.main.tests.test_base import TestBase
from onadata.apps.viewer.models import DataDictionary
from onadata.apps.viewer.models.data_dictionary import create_export_repeat_register
from onadata.libs.serializers.project_serializer import ProjectSerializer
from onadata.libs.utils.common_tools import merge_dicts

Expand Down Expand Up @@ -146,7 +147,9 @@ def tearDown(self):

# Enable signals
post_save.connect(
sender=DataDictionary, dispatch_uid="create_export_repeat_register"
sender=DataDictionary,
dispatch_uid="create_export_repeat_register",
receiver=create_export_repeat_register,
)

def user_profile_data(self):
Expand Down

0 comments on commit 84adaab

Please sign in to comment.