summaryrefslogtreecommitdiff
path: root/chimere/main/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2010-11-15 18:30:14 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2010-11-15 18:30:14 +0100
commitdf99f670aa15eab089ae8ef6ff07b9b8de0d2a75 (patch)
tree8d835c2455ae785e3c444ce02df8a174bb6778d7 /chimere/main/forms.py
parent1aa27ca08890e2c1212d4b57c6b2caa0a0252259 (diff)
downloadChimère-df99f670aa15eab089ae8ef6ff07b9b8de0d2a75.tar.bz2
Chimère-df99f670aa15eab089ae8ef6ff07b9b8de0d2a75.zip
Make Chimère compatible with Django 1.2
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])