After applying the migration for a Model, having an encripted CharField, such as:
first_name = models.CharField(_("first name"), max_length=150, blank=True)
the corresponding column of the database is created as:
first_name | character varying(150) | | not null
but the encripted value may be larger than 150 character.
What I'm supposed to do to circumvent this problem?
Pardon me... it seems I have done something wrong, because I tried again, using a different Model (the previous case happened while subclassing AbstractUser) and the database column is created as bytea.
After applying the migration for a Model, having an encripted CharField, such as:
first_name = models.CharField(_("first name"), max_length=150, blank=True)
the corresponding column of the database is created as:
first_name | character varying(150) | | not null
but the encripted value may be larger than 150 character.
What I'm supposed to do to circumvent this problem?