@@ -182,6 +182,7 @@ class EdxappUser(UserQueryMixin, APIView):
182182 "fullname" ,
183183 ],
184184 hidden_fields = ["password" ],
185+ save_all_parameters = True ,
185186 method_name = 'eox_core_api_method' ,
186187 )
187188 def post (self , request , * args , ** kwargs ):
@@ -414,6 +415,7 @@ class EdxappUserUpdater(UserQueryMixin, APIView):
414415 'is_active' ,
415416 ],
416417 hidden_fields = ['password' ],
418+ save_all_parameters = True ,
417419 method_name = 'eox_core_api_method' ,
418420 )
419421 def patch (self , request , * args , ** kwargs ):
@@ -541,7 +543,18 @@ class EdxappEnrollment(UserQueryMixin, APIView):
541543 400 : "Bad request, invalid course_id or missing either email or username." ,
542544 },
543545 )
544- @audit_drf_api (action = 'Create single or bulk enrollments' , method_name = 'eox_core_api_method' )
546+ @audit_drf_api (
547+ action = 'Create single or bulk enrollments' ,
548+ data_filter = [
549+ 'email' ,
550+ 'username' ,
551+ 'course_id' ,
552+ 'mode' ,
553+ 'is_active' ,
554+ 'enrollment_attributes' ,
555+ ],
556+ method_name = 'eox_core_api_method' ,
557+ )
545558 def post (self , request , * args , ** kwargs ):
546559 """
547560 Handle creation of single or bulk enrollments
@@ -641,7 +654,18 @@ def post(self, request, *args, **kwargs):
641654 400 : "Bad request, invalid course_id or missing either email or username." ,
642655 },
643656 )
644- @audit_drf_api (action = 'Update enrollments on edxapp' , method_name = 'eox_core_api_method' )
657+ @audit_drf_api (
658+ action = 'Update enrollments on edxapp' ,
659+ data_filter = [
660+ 'email' ,
661+ 'username' ,
662+ 'course_id' ,
663+ 'mode' ,
664+ 'is_active' ,
665+ 'enrollment_attributes' ,
666+ ],
667+ method_name = 'eox_core_api_method' ,
668+ )
645669 def put (self , request , * args , ** kwargs ):
646670 """
647671 Update enrollments on edxapp
0 commit comments