diff options
author | Dan McGee <dan@archlinux.org> | 2011-10-22 01:49:00 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-10-22 01:49:00 +0200 |
commit | 2d5777b11d229d115a31a6c82236570002c2dd57 (patch) | |
tree | a91e12e95fce1072115c106265bac2b445670645 /main | |
parent | 002574cce1d9756ba28a87a038f6906b566f2e2a (diff) | |
download | archweb-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.py | 2 |
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 |