title: Django class-based view: How do I pass additional parameters to the as_view method?
body: <p>I have a custom class-based view</p>
  
  <pre><code># myapp/views.py
  from django.views.generic import *
  
  class MyView(DetailView):
      template_name = 'detail.html'
      model = MyModel
  
      def get_object(self, queryset=None):
          return queryset.get(slug=self.slug)
  </code></pre>
  
  <p>I want to pass in the slug parameter (or other parameters to the view) like this</p>
  
  <pre><code>MyView.as_view(slug='hello_world')
  </code></pre>
  
  <p>Do I need to override any methods to be able to do this?</p>