From f3a3ce5623ccecca92bf4b885615e1836be3508c Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 5 Dec 2011 16:53:20 -0600 Subject: 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 --- devel/models.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'devel/models.py') diff --git a/devel/models.py b/devel/models.py index f31b8fb..6c97375 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: -- cgit v1.2.3-24-g4f1b