title: How to make encrypted fields unique in django?
body: <p>I use fernet_fields extension to make one of my fields encrypted, however I need data in this field to be unique. Since data in encrypted field is always different, it doesn't support uniqueness. But I need db to store only unique records. So how do I do this? I have idea to make additional irreversible md5 charfield, but is there a convenient way to make both fields being recorded simulteniously by setting some one parameter of my model?</p>