diff options
Diffstat (limited to 'chimere/forms.py')
-rw-r--r-- | chimere/forms.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chimere/forms.py b/chimere/forms.py index cc8661f..69778de 100644 --- a/chimere/forms.py +++ b/chimere/forms.py @@ -796,9 +796,11 @@ class AreaAdminForm(forms.ModelForm): except ValueError: v = None if not v: - args[0]._mutable = True + if hasattr(args[0], "_mutable"): + args[0]._mutable = True args[0][k] = None - args[0]._mutable = False + if hasattr(args[0], "_mutable"): + args[0]._mutable = False if 'instance' in keys and keys['instance']: instance = keys['instance'] dct = {'area': (instance.upper_left_corner, |