Skip to content

Commit

Permalink
Merge pull request #151 from eduNEXT/and/update_action_names
Browse files Browse the repository at this point in the history
refactor: Update action names in EdxappPreEnrollment view
  • Loading branch information
jignaciopm authored Jun 8, 2021
2 parents 7a5a927 + e8c863a commit 9f1a50e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Change Log
Unreleased
----------

Changed
~~~~~~~
* Update action names in EdxappPreEnrollment view.

[4.10.1] - 2021-06-03
--------------------
* Add method override in ConfigurableOpenIdConnectAuth to avoid getting per class
Expand Down
6 changes: 3 additions & 3 deletions eox_core/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ class EdxappPreEnrollment(APIView):
permission_classes = (EoxCoreAPIPermission,)
renderer_classes = (JSONRenderer, BrowsableAPIRenderer)

@audit_api_wrapper(action='Create whitelistings on edxapp.')
@audit_api_wrapper(action='Create pre-enrollments on edxapp.')
def post(self, request, *args, **kwargs):
"""
Create whitelistings on edxapp
Expand All @@ -604,7 +604,7 @@ def post(self, request, *args, **kwargs):
).data
return Response(response_data)

@audit_api_wrapper(action='Update whitelistings on edxapp.')
@audit_api_wrapper(action='Update pre-enrollments on edxapp.')
def put(self, request, *args, **kwargs):
"""
Update whitelistings on edxapp
Expand All @@ -630,7 +630,7 @@ def put(self, request, *args, **kwargs):
response = EdxappCoursePreEnrollmentSerializer(updated_pre_enrollment).data
return Response(response)

@audit_api_wrapper(action='Delete whitelistings on edxapp.')
@audit_api_wrapper(action='Delete pre-enrollments on edxapp.')
def delete(self, request, *args, **kwargs):
"""
Delete whitelistings on edxapp
Expand Down

0 comments on commit 9f1a50e

Please sign in to comment.