diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-06-16 18:39:42 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-06-16 18:39:42 +0200 |
| commit | d0e445301abf1010c85f738fddcb3ac5894215e3 (patch) | |
| tree | aed266494a442ca241137370e7df7dc965febf5f /ishtar/furnitures/forms_items.py | |
| parent | 588daeb26b7e847c7f29a546543e26dd07fc55c6 (diff) | |
| download | Ishtar-d0e445301abf1010c85f738fddcb3ac5894215e3.tar.bz2 Ishtar-d0e445301abf1010c85f738fddcb3ac5894215e3.zip | |
Correct the database link between context records and operations (closes #482)
Diffstat (limited to 'ishtar/furnitures/forms_items.py')
| -rw-r--r-- | ishtar/furnitures/forms_items.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ishtar/furnitures/forms_items.py b/ishtar/furnitures/forms_items.py index 6efb705e2..b6da0f889 100644 --- a/ishtar/furnitures/forms_items.py +++ b/ishtar/furnitures/forms_items.py @@ -69,8 +69,7 @@ class ItemWizard(Wizard): current_cr = self.get_current_contextrecord(request, storage) if not current_cr: return context - # TOCHANGE - operation = current_cr.parcel.operation + operation = current_cr.operation items = [] if hasattr(operation, 'code_patriarche') and operation.code_patriarche: items.append(unicode(operation.code_patriarche)) @@ -136,9 +135,9 @@ item_creation_wizard = ItemWizard([ class ItemSelect(forms.Form): base_items__context_record__parcel__town = get_town_field() - base_items__context_record__parcel__operation__year = forms.IntegerField( + base_items__context_record__operation__year = forms.IntegerField( label=_(u"Year")) - base_items__context_record__parcel__operation__code_patriarche = \ + base_items__context_record__operation__code_patriarche = \ forms.IntegerField(label=_(u"Code PATRIARCHE")) dating__period = forms.ChoiceField( label=_(u"Period"), choices=models.Period.get_types()) |
