Задать вопрос

Тел: +7 965 3737 888

457

Просмотров

0

Ответов

Encrypted Custom Model Field

<p>Custom model field to support two ways encryption.
The key is provided in the app settings.py file. It should be at least 32 chars.</p>
<p><strong> usage </strong></p>
<p>Assuming that you placed the new code into fields.py</p>
from app.fields import EncyptedField

class Account(models.Model):
    password = EncryptedField()

Вопрос полезен? Да0/Нет0
file_3975.py(1.9Кб)
None