Merge branch 'reversion'
[auf_rh_dae.git] / project / dae / forms.py
index 6aa6f1b..0de2b4b 100644 (file)
@@ -384,17 +384,6 @@ class PosteForm(forms.ModelForm):
 
         return cleaned_data
 
 
         return cleaned_data
 
-    def save(self, *args, **kwargs):
-        kwargs2 = kwargs.copy()
-        kwargs2['commit'] = False
-        poste = super(PosteForm, self).save(*args, **kwargs2)
-        # id_rh
-        if 'commit' not in kwargs or kwargs['commit']:
-            if poste.id is None:
-                poste.date_creation = datetime.datetime.now()
-            poste.save()
-        return poste
-
 
 class ChoosePosteForm(forms.ModelForm):
     class Meta:
 
 class ChoosePosteForm(forms.ModelForm):
     class Meta:
@@ -446,13 +435,6 @@ class DossierForm(forms.ModelForm):
                        contrat_date_fin=admin_widgets.AdminDateWidget(),
                     )
 
                        contrat_date_fin=admin_widgets.AdminDateWidget(),
                     )
 
-    def save(self, *args, **kwargs):
-        dossier = super(DossierForm, self).save(*args, **kwargs)
-        if dossier.id is None:
-            dossier.date_creation = datetime.datetime.now()
-        dossier.save()
-        return dossier
-
 WF_HELP_TEXT = ""
 
 
 WF_HELP_TEXT = ""