Browse Source

Turn None into empty string on hydration

Rafał Pitoń 11 years ago
parent
commit
08ec93cd8b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      misago/conf/hydrators.py

+ 1 - 1
misago/conf/hydrators.py

@@ -1,5 +1,5 @@
 def hydrate_string(dry_value):
 def hydrate_string(dry_value):
-    return dry_value
+    return unicode(dry_value) if dry_value else ''
 
 
 
 
 def dehydrate_string(wet_value):
 def dehydrate_string(wet_value):