Don't check mode in display forms
authorThierry Florac <tflorac@ulthar.net>
Wed, 02 Oct 2019 10:51:59 +0200
changeset 191 35d8152e2490
parent 190 5f56e726bb69
child 192 f50793e3992f
Don't check mode in display forms
src/pyams_form/form.py
--- a/src/pyams_form/form.py	Thu Sep 26 11:54:28 2019 +0200
+++ b/src/pyams_form/form.py	Wed Oct 02 10:51:59 2019 +0200
@@ -632,6 +632,10 @@
 class DisplayForm(BaseForm, BaseDisplayForm):
     """Display form base class"""
 
+    def check_mode(self):
+        # don't check mode in display forms!!
+        pass
+
 
 @implementer(IDialog)
 class DialogDisplayForm(DisplayForm):