瀏覽代碼

changed __name__ to property from method

master
Sebastian Vetter 13 年之前
父節點
當前提交
d800da8c72
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      oscar/apps/search/views.py

+ 2
- 1
oscar/apps/search/views.py 查看文件

@@ -77,6 +77,7 @@ class MultiFacetedSearchView(FacetedSearchView):
77 77
         
78 78
         return super(MultiFacetedSearchView, self).__call__(request, *args, **kwargs)
79 79
 
80
+    @property
80 81
     def __name__(self):
81 82
         return "MultiFacetedSearchView"
82 83
 
@@ -94,4 +95,4 @@ class MultiFacetedSearchView(FacetedSearchView):
94 95
                     'facet': facet[0][:-6], # removing the _exact suffix that haystack uses for some reason
95 96
                     'value' : facet[1].strip('"')
96 97
                 })
97
-        return extra
98
+        return extra

Loading…
取消
儲存