Error while adding custom serach filters.

53 views
Skip to first unread message

Sheetal

unread,
Jun 17, 2016, 1:24:53 PM6/17/16
to General Open edX discussion
Hi Guys,
I have been trying to create custom search filters. I have an attribute called 'level' in my settings page in cms. I want level to be appearing in the Refine search catalog. 
I am getting an error in my settings page in cms. This is what the log says :

 response = view_func(request, *args, **kwargs)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/http.py", line 45, in inner
    return func(request, *args, **kwargs)
  File "/edx/app/edxapp/edx-platform/common/djangoapps/util/json_request.py", line 52, in parse_json_into_request
    return view_function(request, *args, **kwargs)
  File "/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/views/course.py", line 1005, in settings_handler
    course_details = CourseDetails.fetch(course_key)
  File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/models/course_details.py", line 96, in fetch
    course_details.level = descriptor.level
AttributeError: 'CourseDescriptorWithMixins' object has no attribute 'level'



How can i resolve this issue?

apollinaire samiey

unread,
Jul 21, 2016, 1:51:30 PM7/21/16
to General Open edX discussion
Hello,
My name is Apollinaire and i would like to know if youcould solve your problem about yo "adding custom search filter". I don't know how to add custum search filter  in the Refine search catalog and i need a help to do that. Thanks!
Reply all
Reply to author
Forward
0 new messages