I have a model with name, code and password. I need to encrypt the password. Also I should'nt show a plain text in the password field. I referred to this link
Password field in Django model
But the answer is old and need to know what the present approach is.
My model is as below
class Crew(models.Model):
crew_id = models.AutoField(primary_key=True)
crew_code = models.CharField(max_length=200, null=False, unique=True)
crew_name = models.CharField(max_length=200, null=False)
crew_password = models.CharField(max_length=200, null=False)