web/formfields.py
changeset 9444 6012cf57f48e
parent 9283 5f2c5eb1a820
child 9718 927d035b6921
child 9770 112c884b2d8d
--- a/web/formfields.py	Wed Jan 15 12:34:41 2014 +0100
+++ b/web/formfields.py	Tue Jan 21 17:14:05 2014 +0100
@@ -1033,6 +1033,10 @@
         # while it has no value, hence generating a false error.
         return list(self.fields)
 
+    @property
+    def needs_multipart(self):
+        return any(f.needs_multipart for f in self.fields)
+
 
 class RelationField(Field):
     """Use this field to edit a relation of an entity.