Monday, August 22, 2022

One model field map to two database columns

Hi everyone,

It is possible to map one field in a Model to two or more database columns? For example:

class User(models.Model):
    encrypted_hash_email = EncryptedHash()

then in database we have

encrypted_email and hash_email columns?

Thanks and have a good day!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/93142662-b0fc-4b3a-9cdb-918b1e420b12n%40googlegroups.com.

No comments:

Post a Comment