web/views/autoform.py
changeset 4110 8728d8c95985
parent 4105 de31c3afe975
child 4160 3fbdeef9a610
--- a/web/views/autoform.py	Thu Dec 10 17:59:32 2009 +0100
+++ b/web/views/autoform.py	Thu Dec 10 18:00:15 2009 +0100
@@ -408,3 +408,5 @@
     def etype_relation_field(etype, rtype, role='subject'):
         eschema = vreg.schema.eschema(etype)
         return AutomaticEntityForm.field_by_name(rtype, role, eschema)
+
+    vreg.register_all(globals().values(), __name__)