summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
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