File: models.py

package info (click to toggle)
python-django-extensions 0.4.2pre%2Bgit201004211325-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 768 kB
  • ctags: 739
  • sloc: python: 4,197; makefile: 76
file content (7 lines) | stat: -rw-r--r-- 247 bytes parent folder | download
1
2
3
4
5
6
7
from django.db import models

from django_extensions.db.fields.encrypted import EncryptedTextField, EncryptedCharField

class Secret(models.Model):
    name = EncryptedCharField(blank=True, max_length=255)
    text = EncryptedTextField(blank=True)