diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-03-24 17:47:33 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-03-24 17:47:33 +0100 | 
| commit | d28045d3cd9147942f11c8c063b9f2b756439572 (patch) | |
| tree | 51b3e4fb0bb94b8355544f9903d5b46af321a250 /ishtar_common/wizards.py | |
| parent | 5107a6f5fe55c7fc3aed52022be8830636b62a96 (diff) | |
| download | Ishtar-d28045d3cd9147942f11c8c063b9f2b756439572.tar.bz2 Ishtar-d28045d3cd9147942f11c8c063b9f2b756439572.zip | |
Wizard: manage readonly forms (refs #3563)
Diffstat (limited to 'ishtar_common/wizards.py')
| -rw-r--r-- | ishtar_common/wizards.py | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index 7950bcc7e..ddb2bc2ac 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -408,6 +408,8 @@ class Wizard(NamedUrlWizardView):          for form in form_list:              if not form.is_valid():                  return self.render(form) +            if hasattr(form, 'readonly') and form.readonly: +                continue              base_form = hasattr(form, 'forms') and form.forms[0] or form              associated_models = hasattr(base_form, 'associated_models') and \                  base_form.associated_models or {} | 
