Browse Source

More small fixes

Marcos Dumay de Medeiros 7 years ago
parent
commit
019b6a4177
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/rapid/widgets.py

+ 1 - 1
src/rapid/widgets.py

@@ -49,7 +49,7 @@ class RapidRelationReadOnly(widgets.Widget):
             return '<span class="data-value">%s</span>%s\n' % (force_text(obj), hidden)
 
     def value_from_datadict(self, data, files, name):
-        return data[name]
+        return data.get(name)
 
 
 class RapidSelector(widgets.Select):