+ def keys(self):
+ try:
+ from .views import contact_forms
+ orig_fields = contact_forms[self.form_tag]().fields
+ except KeyError:
+ orig_fields = {}
+ return list(orig_fields.keys())
+
+ def items(self):
+ return [(key, self.body[key]) for key in self.keys() if key in self.body]
+