Apercu des postes, employés et dossiers
[auf_rh_dae.git] / project / rh / admin.py
index 909ca30..c0e8c07 100644 (file)
@@ -353,6 +353,7 @@ class DossierAdmin(AUFMetadataAdminMixin, ProtectRegionMixin, admin.ModelAdmin,
         for instance in instances:
             if instance.__class__ == rh.DossierCommentaire:
                 instance.owner = request.user
+                instance.date_creation = datetime.datetime.now()
             instance.save()
 
 
@@ -436,6 +437,7 @@ class EmployeAdmin(AUFMetadataAdminMixin, ProtectRegionMixin, admin.ModelAdmin):
         for instance in instances:
             if instance.__class__ == rh.EmployeCommentaire:
                 instance.owner = request.user
+                instance.date_creation = datetime.datetime.now()
             instance.save()
 
 
@@ -593,6 +595,7 @@ class PosteAdmin(AUFMetadataAdminMixin, ProtectRegionMixin, admin.ModelAdmin, Aj
         for instance in instances:
             if instance.__class__ == rh.PosteCommentaire:
                 instance.owner = request.user
+                instance.date_creation = datetime.datetime.now()
             instance.save()
         formset.save_m2m()