summaryrefslogtreecommitdiff
path: root/devel/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-06-14 12:13:02 -0500
committerDan McGee <dan@archlinux.org>2013-06-14 12:13:02 -0500
commitb9fab139ed9e5e24b853c0f77bcc78ffba8176b0 (patch)
tree38b5d8f7d4e08386bf76b6bba10112e41eb30ba9 /devel/models.py
parent80d323c39218d113d3002f5bf76bd464cddfcb95 (diff)
Add PGP signature signer and signee indexes
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/models.py')
-rw-r--r--devel/models.py10
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)