summaryrefslogtreecommitdiffstats
path: root/devel/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-12-05 16:53:20 -0600
committerDan McGee <dan@archlinux.org>2011-12-05 16:53:26 -0600
commitf3a3ce5623ccecca92bf4b885615e1836be3508c (patch)
treee674c407c5a038d8f00ed83aba8edd37012c7513 /devel/models.py
parent9c6fd09153b4bac9f6b95e2584a3776a0d91ba42 (diff)
downloadarchweb-f3a3ce5623ccecca92bf4b885615e1836be3508c.tar.gz
archweb-f3a3ce5623ccecca92bf4b885615e1836be3508c.zip
Add new PGPSignature model
This will be used to track cross-developer and master key signatures to build a visualization in the web interface of key signatures, as well as be able to provide info on who is verified, who is not, etc. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/models.py')
-rw-r--r--devel/models.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/models.py b/devel/models.py
index f31b8fbb..6c97375c 100644
--- a/devel/models.py
+++ b/devel/models.py
@@ -17,4 +17,17 @@ class MasterKey(models.Model):
class Meta:
ordering = ('created',)
+
+class PGPSignature(models.Model):
+ signer = PGPKeyField(max_length=40, verbose_name="PGP key fingerprint",
+ help_text="consists of 40 hex digits; use `gpg --fingerprint`")
+ signee = PGPKeyField(max_length=40, verbose_name="PGP key fingerprint",
+ help_text="consists of 40 hex digits; use `gpg --fingerprint`")
+ created = models.DateField()
+ expires = models.DateField(null=True)
+ valid = models.BooleanField(default=True)
+
+ class Meta:
+ verbose_name = 'PGP signature'
+
# vim: set ts=4 sw=4 et: