title: Django add optional arguments to decorator
body: <p>I have the following decorator and view which works fine.</p>
  
  <p><strong>Decorator</strong></p>
  
  <pre><code>def event_admin_only(func):
      """
      Checks if the current role for the user is an Event Admin or not
      """
      def decorator(request, *args, **kwargs):
          event = get_object_or_404(Event, slug=kwargs['event_slug'])
  
          allowed_roles = [role[1] for role in Role.ADMIN_ROLES]
  
          # get user current role
          current_role = request.session.get('current_role')
  
          if current_role not in allowed_roles:
              url = reverse('no_perms')
              return redirect(url)
          else:       
              return func(request, *args, **kwargs)
      return decorator
  </code></pre>
  
  <p><strong>View</strong></p>
  
  <pre><code>@event_admin_only
  def event_dashboard(request, event_slug):
      pass
  </code></pre>
  
  <p>But how can I modify my decorator such that it takes in an additional parameter like so:</p>
  
  <pre><code>@event_admin_only(obj1,[...])
  def event_dashboard(request, event_slug):
      pass
  </code></pre>