summaryrefslogtreecommitdiff
path: root/ishtar/furnitures/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2011-05-11 01:42:48 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2011-05-11 01:42:48 +0200
commita3d2037263a6886ffb69fa8217814ec74a906324 (patch)
tree5bef0b9ef8aabcb0162b343b6b94f7d7e5e4e46d /ishtar/furnitures/forms.py
parentf3b115804f8d4266f7ffb761eaa77012defff553 (diff)
downloadIshtar-a3d2037263a6886ffb69fa8217814ec74a906324.tar.bz2
Ishtar-a3d2037263a6886ffb69fa8217814ec74a906324.zip
Labels corrections - minors
Diffstat (limited to 'ishtar/furnitures/forms.py')
-rw-r--r--ishtar/furnitures/forms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar/furnitures/forms.py b/ishtar/furnitures/forms.py
index 54d1d6af7..e9a9159eb 100644
--- a/ishtar/furnitures/forms.py
+++ b/ishtar/furnitures/forms.py
@@ -1458,7 +1458,7 @@ class OperationWizard(FileWizard):
try:
for parcel in models.File.objects.get(pk=int(file_id)
).parcels.all():
- parcels.append((parcel.pk, unicode(parcel)))
+ parcels.append((parcel.pk, parcel.short_label()))
except (ValueError, ObjectDoesNotExist):
pass
data['PARCELS'] = sorted(parcels, key=lambda x:x[1])
@@ -1779,7 +1779,7 @@ operation_modification_wizard = OperationWizard([
'towns-operation_modification':has_associated_file(
'general-operation_modification'),
'parcelsgeneral-operation_modification':has_associated_file(
- 'general-operation_creation', negate=True),
+ 'general-operation_modification', negate=True),
'parcels-operation_modification':has_associated_file(
'general-operation_modification'),
},