1. Daniel Watkins
  2. django-sphinxdoc


Daniel Watkins  committed 2793b41

Fix class-based view.

  • Participants
  • Parent commits 12e4c7e
  • Branches default

Comments (0)

Files changed (1)

File sphinxdoc/views.py

View file
  • Ignore whitespace
 class ProjectSearchView(SearchView):
     Inherits :class:`SearchView` and handles a search request and displays the
         self.slug = slug
         return SearchView.__call__(self, request)
+    @login_required
+    def dispatch(self, *args, **kwargs):
+        super(ProjectSearchView, self).dispatch(*args, **kwargs)
     def build_form(self):
         Instantiates the form that should be used to process the search query.