title: ValueError: The keyword argument `name` must be the name of a method of the decorated class:
body: <h1>views.py</h1>
  
  <pre><code>from django.shortcuts import render
  
  from django.contrib.auth.decorators import login_required
  from django.utils.decorators import method_decorator
  
  from briefcase.BaseBriefcaseView import BaseBriefcaseView
  
  from briefcase.models import Customer
  
  @method_decorator(login_required, name='dispatch')
  class BriefcaseIndexView(BaseBriefcaseView):
      model = Customer
      template_name = 'briefcase/index.html'
  </code></pre>
  
  <h1>urls.py</h1>
  
  <pre><code>from django.conf.urls import url
  
  from briefcase.views import BriefcaseIndexView, invoice_view
  
  
  urlpatterns = [
  
      url(r'^$', BriefcaseIndexView.as_view(), name='index'),
      url(r'^index/invoice_view$', invoice_view.as_view(), name='invoice'),
  
  ]
  </code></pre>
  
  <h1>BaseBriefcase.py</h1>
  
  <pre><code>from cmms.views import DefaultContextView
  
  
  class BaseBriefcaseView(DefaultContextView):
      extra_context = {}
  
      def get_context_data(self, **kwargs):
          context = super(BaseBriefcaseView, self).get_context_data(**kwargs)
          context["side_menu"] = self.get_side_menu()
          context["main_menu"] = self.get_main_menu()
          context["side_filter"] = self.get_side_filter()
          context["module"] = "Briefcase"
          return context
  </code></pre>
  
  <p>And the error i get is.......</p>
  
  <blockquote>
    <p>ValueError: The keyword argument name must be the name of a method of . >  the decorated class: . Got 'dispatch' instead</p>
  </blockquote>
  
  <p>Please help a django newbie. What am I doing wrong?</p>