diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-11-21 10:22:04 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-11-28 11:40:17 +0100 | 
| commit | e1dd8ec6a19febe27642dd2411aaaa1cf5c8bdaa (patch) | |
| tree | 502ce32ca69676471356322b03f3a83febd9caec /ishtar_common/wizards.py | |
| parent | 66c8c7fa80e2e1494a37503e86ccf2bb3188b87c (diff) | |
| download | Ishtar-e1dd8ec6a19febe27642dd2411aaaa1cf5c8bdaa.tar.bz2 Ishtar-e1dd8ec6a19febe27642dd2411aaaa1cf5c8bdaa.zip  | |
Manage treatment with no creation new of item
Diffstat (limited to 'ishtar_common/wizards.py')
| -rw-r--r-- | ishtar_common/wizards.py | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index 7fd19f721..b3fc4b55a 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -439,7 +439,7 @@ class Wizard(IshtarWizard):              datas.append((form.form_label, form_datas))          return datas -    def get_extra_model(self, dct, form_list): +    def get_extra_model(self, dct, m2m, form_list):          dct['history_modifier'] = self.request.user          return dct @@ -552,7 +552,7 @@ class Wizard(IshtarWizard):      def save_model(self, dct, m2m, whole_associated_models, form_list,                     return_object): -        dct = self.get_extra_model(dct, form_list) +        dct = self.get_extra_model(dct, m2m, form_list)          obj = self.get_current_saved_object()          data = {}          if obj and hasattr(obj, 'data'): @@ -1787,8 +1787,8 @@ class AccountWizard(Wizard):  class SourceWizard(Wizard):      model = None -    def get_extra_model(self, dct, form_list): -        dct = super(SourceWizard, self).get_extra_model(dct, form_list) +    def get_extra_model(self, dct, m2m, form_list): +        dct = super(SourceWizard, self).get_extra_model(dct, m2m, form_list)          if 'history_modifier' in dct:              dct.pop('history_modifier')          return dct  | 
