Re: One model field map to two database columns

2022-08-25 Thread Dann Luciano
Thanks Ryan. On Tuesday, August 23, 2022 at 10:29:59 AM UTC-3 Ryan Nowakowski wrote: > On Mon, Aug 22, 2022 at 05:56:00AM -0700, Dann Luciano wrote: > > It is possible to map one field in a Model to two or more database > columns? > > For example: > > > > class User(models.Model): > >

Re: One model field map to two database columns

2022-08-23 Thread Ryan Nowakowski
On Mon, Aug 22, 2022 at 05:56:00AM -0700, Dann Luciano wrote: > 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

One model field map to two database columns

2022-08-22 Thread Dann Luciano
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