Commits

Torsten Irländer  committed 9a287d0

Only add value to the converted values if the field is not marked as readonly.

  • Participants
  • Parent commits 0eed48c

Comments (0)

Files changed (1)

File formbar/form.py

                     self._add_error(fieldname, rule.msg)
 
             # 4. Basic type conversations, Defaults to String
-            values[fieldname] = self._convert(field, submitted.get(fieldname))
+            if not field.is_readonly():
+                # Only add the value if the field is not marked as readonly
+                values[fieldname] = self._convert(field, submitted.get(fieldname))
 
             # 5. Postvalidation
             for rule in rules: