def get_context_data(self, **kwargs): """Insert the form into the context dict.""" if 'categories' not in kwargs: kwargs['categories'] = VoteCategory.eligible_category( self.request.user) return super().get_context_data(**kwargs)