summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-10-22 01:49:00 +0200
committerDan McGee <dan@archlinux.org>2011-10-22 01:49:00 +0200
commit2d5777b11d229d115a31a6c82236570002c2dd57 (patch)
treea91e12e95fce1072115c106265bac2b445670645 /main
parent002574cce1d9756ba28a87a038f6906b566f2e2a (diff)
downloadarchweb-2d5777b11d229d115a31a6c82236570002c2dd57.tar.gz
archweb-2d5777b11d229d115a31a6c82236570002c2dd57.tar.xz
Add a generate_keyring command
This grabs all the PGP keys from the developer profiles and adds them to the keyrings. Obviously we may want to do more in the future such as filter by groups, active status, etc. but this is just a first iteration. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index bdb8462..440201d 100644
--- a/main/models.py
+++ b/main/models.py
@@ -27,7 +27,7 @@ class PGPKeyField(models.CharField):
_south_introspects = True
def to_python(self, value):
- if value == '':
+ if value == '' or value is None:
return None
value = super(PGPKeyField, self).to_python(value)
# remove all spaces