I am new to Django , and totally confused about the error I face. i am trying to create a rest api and apply django filtering option to it.
here is my view code.