Skip to content

Commit

Permalink
Fix cast type
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfarrell committed Jan 24, 2021
1 parent 3becc41 commit df4df40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pgcrypto/fields.py
Expand Up @@ -71,7 +71,7 @@ class DatePGPPublicKeyField(PGPPublicKeyFieldMixin, models.DateField):
class DateTimePGPPublicKeyField(PGPPublicKeyFieldMixin, models.DateTimeField):
"""DateTime PGP public key encrypted field for postgres."""
encrypt_sql = PGP_PUB_ENCRYPT_SQL_WITH_NULLIF
cast_type = 'TIMESTAMP'
cast_type = 'TIMESTAMPTZ'


class EmailPGPSymmetricKeyField(PGPSymmetricKeyFieldMixin, models.EmailField):
Expand Down Expand Up @@ -107,7 +107,7 @@ class DatePGPSymmetricKeyField(PGPSymmetricKeyFieldMixin, models.DateField):
class DateTimePGPSymmetricKeyField(PGPSymmetricKeyFieldMixin, models.DateTimeField):
"""DateTime PGP symmetric key encrypted field for postgres."""
encrypt_sql = PGP_SYM_ENCRYPT_SQL_WITH_NULLIF
cast_type = 'TIMESTAMP'
cast_type = 'TIMESTAMPTZ'


class DecimalPGPPublicKeyField(DecimalPGPFieldMixin,
Expand Down

0 comments on commit df4df40

Please sign in to comment.