diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-01-14 01:24:47 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-01-14 01:24:47 +0100 |
| commit | 7f88c23cf248920550f736cae9f7ba8ef65285d2 (patch) | |
| tree | 15c3d82fff33d194d5be61d461f71063ff0e1141 /ishtar/furnitures/forms.py | |
| parent | 7def84f8b1d5d8fa4956d4f82e7dc550988ac260 (diff) | |
| download | Ishtar-7f88c23cf248920550f736cae9f7ba8ef65285d2.tar.bz2 Ishtar-7f88c23cf248920550f736cae9f7ba8ef65285d2.zip | |
Update of the french translation
Diffstat (limited to 'ishtar/furnitures/forms.py')
| -rw-r--r-- | ishtar/furnitures/forms.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ishtar/furnitures/forms.py b/ishtar/furnitures/forms.py index 5abfe90f9..376287d68 100644 --- a/ishtar/furnitures/forms.py +++ b/ishtar/furnitures/forms.py @@ -677,9 +677,6 @@ class OperationWizard(Wizard): towns.append((town.pk, unicode(town))) except (ValueError, ObjectDoesNotExist): pass - if not data: - # by default fill with all towns - data['towns'] = towns data['TOWNS'] = sorted(towns, key=lambda x:x[1]) data = data or None form = super(OperationWizard, self).get_form(request, storage, step, @@ -739,7 +736,8 @@ class OperationFormReference(forms.Form): max_val = models.Operation.objects.filter(year=year).aggregate( Max('operation_code'))["operation_code__max"] raise forms.ValidationError(_(u"Operation code already exist for " - "year: %d - use a value bigger than %d") % (year, max_val)) +"year: %(year)d - use a value bigger than %(last_val)d") % {'year':year, + 'last_val':max_val}) return cleaned_data class SelectedTownForm(forms.Form): |
