equal
deleted
inserted
replaced
244 if isinstance(cls_or_self, type): |
244 if isinstance(cls_or_self, type): |
245 fields = cls_or_self._fields_ |
245 fields = cls_or_self._fields_ |
246 else: |
246 else: |
247 fields = cls_or_self.fields |
247 fields = cls_or_self.fields |
248 fields.remove(field) |
248 fields.remove(field) |
|
249 |
|
250 @iclassmethod |
|
251 def append_field(cls_or_self, field): |
|
252 if isinstance(cls_or_self, type): |
|
253 fields = cls_or_self._fields_ |
|
254 else: |
|
255 fields = cls_or_self.fields |
|
256 fields.append(field) |
249 |
257 |
250 @property |
258 @property |
251 def form_needs_multipart(self): |
259 def form_needs_multipart(self): |
252 return any(field.needs_multipart for field in self.fields) |
260 return any(field.needs_multipart for field in self.fields) |
253 |
261 |