title: How can I store hashed password on database with Django?
body: <p>I want to make the textbox input starred while typing in the password, also I want the password to be saved in the database as a hashed password.</p>
  
  <p><strong>The View</strong></p>
  
  <pre><code>class UserCreate(CreateView):
      model = ModelUser
      fields = ['first_name', 'password', 'username', 'dob', 'email', 'unit', 'house', 'road', 'suburb', 'state', 'postcode', 'country', 'id_type', 'id_no']
  </code></pre>
  
  <p><strong>URLConf</strong></p>
  
  <pre><code>url(r'^add_user/$', views.UserCreate.as_view()),
  </code></pre>
  
  <p><strong>The Model</strong></p>
  
  <pre><code>class ModelUser(AbstractUser):
      client_id = models.IntegerField(null=True)  #id_client in voipswitch database
      user_type = models.CharField(max_length=15, default='client')
      dob = models.DateField(blank=True, null=True)
      phone = models.CharField(max_length=20, default=0)
      unit = models.CharField(max_length=20, blank=True, null=True)
      house = models.CharField(max_length=20, blank=True, null=True)
      road = models.CharField(max_length=25, blank=True, null=True)
      suburb = models.CharField(max_length=25, blank=True, null=True)
      state = models.CharField(max_length=25, blank=True, null=True)
      postcode = models.CharField(max_length=15, blank=True, null=True)
      country = models.CharField(max_length=30, blank=True, null=True)
      id_type = models.CharField(max_length=25, blank=True, null=True)
      id_no = models.CharField(max_length=30, blank=True, null=True)
      reg_time = models.DateTimeField(editable=False, default=datetime.datetime.today())
  
      def __unicode__(self):
          return self.phone
  </code></pre>