title: Override a Django generic class-based view widget
body: <p>Say I have a basic CreateView form, like this, to allow new users to register on a site:</p>
  
  <pre><code>from django.contrib.auth import get_user_model
  from django.http import HttpResponse
  from django.views.generic import CreateView
  
  User = get_user_model()
  
  
  class Signup(CreateView):
  
      model = User
      fields = ['first_name', 'last_name', 'email', 'password']
  </code></pre>
  
  <p>I just tried this, and found that the password field is rendered in plain text; how would I go about overriding the view so that it uses forms.PasswordInput() instead? (I realise it's probably easiest to just define the form by hand, but I'm just curious about how you'd do that.)</p>