diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-07-14 12:08:36 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-07-14 12:08:36 -0600 |
commit | f6b335b268f5f47e5c48f84f5994f7bdcd8b7e5a (patch) | |
tree | 5f7c5ea574a88a4bc1d825e0c7ea829ddedbf9aa /devel/models.py | |
parent | 0aa246b85159bf627873308868cf169868cba569 (diff) | |
parent | ffaa2cfb254a238ba0eb704115b95360305d1ae7 (diff) |
Merge branch 'archweb' into archweb-generic2
Diffstat (limited to 'devel/models.py')
-rw-r--r-- | devel/models.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/devel/models.py b/devel/models.py index 4354e0f2..bf979338 100644 --- a/devel/models.py +++ b/devel/models.py @@ -88,9 +88,9 @@ class MasterKey(models.Model): class DeveloperKey(models.Model): owner = models.ForeignKey(User, related_name='all_keys', null=True, - help_text="The developer this key belongs to") + help_text="The developer this key belongs to") key = PGPKeyField(max_length=40, verbose_name="PGP key fingerprint", - unique=True) + unique=True) created = models.DateTimeField() expires = models.DateTimeField(null=True, blank=True) revoked = models.DateTimeField(null=True, blank=True) @@ -101,8 +101,10 @@ class DeveloperKey(models.Model): class PGPSignature(models.Model): - signer = PGPKeyField(max_length=40, verbose_name="Signer key fingerprint") - signee = PGPKeyField(max_length=40, verbose_name="Signee key fingerprint") + signer = PGPKeyField(max_length=40, verbose_name="Signer key fingerprint", + db_index=True) + signee = PGPKeyField(max_length=40, verbose_name="Signee key fingerprint", + db_index=True) created = models.DateField() expires = models.DateField(null=True, blank=True) valid = models.BooleanField(default=True) |