summaryrefslogtreecommitdiff
path: root/chimere/main/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/main/forms.py')
-rw-r--r--chimere/main/forms.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/chimere/main/forms.py b/chimere/main/forms.py
index f2490da..2eff8b1 100644
--- a/chimere/main/forms.py
+++ b/chimere/main/forms.py
@@ -247,8 +247,10 @@ class AreaAdminForm(forms.ModelForm):
"""
Custom save method in order to manage area
"""
+ print 1
new_area = super(AreaAdminForm, self).save(*args, **keys)
area = self.cleaned_data['area']
+ print 2
new_area.upper_left_corner = 'POINT(%s %s)' % (area[0][0], area[0][1])
new_area.lower_right_corner = 'POINT(%s %s)' % (area[1][0],
area[1][1])