summaryrefslogtreecommitdiff
path: root/chimere/main/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2010-11-18 18:13:04 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2010-11-18 18:13:04 +0100
commit3b6e3004cd94b6d36dda3bb976eed8de3b972ba6 (patch)
treebe40e1338a66ed3ca697f1c1e08962b80367f240 /chimere/main/forms.py
parenta996be2b23a734a21a8b312501a976ffb60fa7e8 (diff)
downloadChimère-3b6e3004cd94b6d36dda3bb976eed8de3b972ba6.tar.bz2
Chimère-3b6e3004cd94b6d36dda3bb976eed8de3b972ba6.zip
Better management of rights for categories not associated to an area (fixes #268)
Diffstat (limited to 'chimere/main/forms.py')
-rw-r--r--chimere/main/forms.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/chimere/main/forms.py b/chimere/main/forms.py
index 1bc197f..ef13dc8 100644
--- a/chimere/main/forms.py
+++ b/chimere/main/forms.py
@@ -247,10 +247,8 @@ 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])