title: Django - How to use decorator in class-based view methods?
body: <p>I am developing a site with django 1.8. This is an example of one of the Views:</p>
  
  <pre><code>class ProfileView(View):
      template_name = 'index.html'
  
      # Return profile of any role (client/employee/admin)
      # Login required
      def get(self, request, *args, **kwargs):
          try:
              profile = Profile.objects.get(user=request.user)
              agency = None
  
              if request.user.is_employee():
                  employee = EmployeeProfile.objects.get(profile=profile)
                  agency = employee.agency
  
              if request.user.is_manager():
                  agency = Agency.objects.get(manager=request.user)
  
          except (Profile.DoesNotExist, EmployeeProfile.DoesNotExist, Agency.DoesNotExist) as e:
              return HttpResponseRedirect('/404')
  
          return render(request, self.template_name, {"profile": profile, "agency": agency})
  
      # Client sign up
      # No decorator is needed
      def post(self, request):
          sign_up = SignUpForm(request.POST, request.FILES)
  
          response = json.loads(utils.create_user(sign_up,request.POST['avatar']))
          if response['profile'] is None:
              return JsonResponse({"code": 400, "response": response['message']})
          profile = serializers.deserialize("json", response['profile']).next().object
  
          group = Group.objects.get(name='clients')
          profile.user.groups.add(group)
  
          return HttpResponseRedirect('/')
  </code></pre>
  
  <p>The question is, can I have different decorators according to the type of request that is made to a controller (view)?</p>