Skip to content

Commit

Permalink
add widget override for TextField
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Aug 14, 2024
1 parent eb03922 commit 1097d7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django_crypto_fields/admin/formfield_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
EncryptedDateField,
EncryptedDateTimeField,
EncryptedIntegerField,
EncryptedTextField,
)

FORMFIELD_FOR_DBFIELD_DEFAULTS.update(
Expand All @@ -14,6 +15,7 @@
EncryptedDateField: FORMFIELD_FOR_DBFIELD_DEFAULTS[models.DateField],
EncryptedDateTimeField: FORMFIELD_FOR_DBFIELD_DEFAULTS[models.DateTimeField],
EncryptedIntegerField: FORMFIELD_FOR_DBFIELD_DEFAULTS[models.IntegerField],
EncryptedTextField: FORMFIELD_FOR_DBFIELD_DEFAULTS[models.TextField],
}
)

Expand Down

0 comments on commit 1097d7f

Please sign in to comment.